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
Is there a reason why the webdatechooser in an ultrawebgrid sample doesn't show any helpful code? Or am I missing something?
http://samples.infragistics.com/2007.3/webfeaturebrowser/default.htm
UltraWebGrid2.Bands[0].Columns.HeaderText = "Data Emiss";// "Data Emiss";
// UltraWebGrid2.Bands[0].Columns.Format = "MM-dd-yyyy";
UltraWebGrid2.Bands[0].Columns.EditorControlID = WebDateChooser1.UniqueID;
UltraWebGrid2.Bands[0].Columns.Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;
Hi,
the code says (in the redirect): " document.location = '../../WebDateChooser/Grid/WebForm1.aspx'; "
so you can open that page in the samples application and see the code there.... anyway, my problem is: I have an ultrawebgrid 7.3, added a WebDateChooser, but it never is showed (just like the user that initiated this discussion):col = gOpenRequests.Columns.FromKey("RevisedDate")col.AllowUpdate = Infragistics.WebUI.UltraWebGrid.AllowUpdate.Yescol.Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Customcol.EditorControlID = WebDateChooser1.UniqueIDWebDateChooser1.Format = Infragistics.WebUI.WebSchedule.DateFormat.Shortwhat is missing here?thanks,
Fernando
The issue remains unresolved... I ended up just dropping that functionality for now until I get it resolved.
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,
I have the data type set in the aspx page:
are you using some panel or something like that? Regards,Fernando
Great! I have visible = true too. Infragistics hides the control if it is assigned to a grid cellAbout source code: you can open the sample http://samples.infragistics.com/2007.3/webfeaturebrowser/default.htmpanel "Schedule", item "Date Chooser in WebGrid" and there is the code...
wrenn in the first post that you write there is in the control webdatechoser "Visible="false" . This is wrong -> visible must = true i try before in my code .