I am unable to get a webdatechooser to work with an ultragridcolumn. I'm using .NET 7.3 version. In the cell I can enter text but the webdatechooser never pops up for me to select a date from.
<igtbl:UltraGridColumn HeaderText="Date Bill Received" Key="BillDate" BaseColumnName="BillDate" Format="MM/dd/yyyy" Type="Custom" DataType="System.DateTime" AllowUpdate="Yes" NullText=""></igtbl:UltraGridColumn>
<igsch:webdatechooser ID="txtDate" Runat="server" BorderWidth="0px" BorderStyle="None" Visible="false"> <CalendarLayout FooterFormat="Today: {0:d}"></CalendarLayout> <ExpandEffects ShadowColor="LightGray"></ExpandEffects></igsch:webdatechooser>
In the code behind
Private Sub grdBills_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles grdBills.InitializeLayout
...Other...
grdBills.Bands(0).Columns.FromKey("BillDate").EditorControlID = txtDate.UniqueID
End Sub
I have the data type set in the aspx page:
In my webgrid hierarchical there is a datasource = dataset that i created that have the field set with the right type ( decimal , string , datetime)
so che columns datetime have the right type set to datetime
excuse , how i do to see the code , the resource isn't in local.....
I just solved it adding this line:
col.DataType = "System.DateTime"let me know if it doesn't work for you I can send my codeRegards,
Fernando
The issue remains unresolved... I ended up just dropping that functionality for now until I get it resolved.