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;
You are creating a WebControl but not adding it to the Form.
Its usually easier just to add the control to the form at design time
Thanks for the answer .
I try to add a webdatechoser in the content page in design time out from the webgrid and associating this at run time works and i am very happy .
i noticed that the control date is disappear where i put in the page to appear in the cell of webgrid , is true ? Because some times it is visible in part wrong of the grid how is not refresh .........
I must use the web grid dinamically to use the hierarchical with Visual Studio 2005 and
why in this example " WebDateChooser - DateChooser in Grid " at link http://samples.infragistics.com/2007.3/webfeaturebrowser/default.htm
there isn't the valid code how in the other example ?
This problem is also in the example "Cell Editors" , It is a pity that lacks code !!!
I am a bit surprised given that several users are reporting the same issue, that the code for the sample
for this problem is "hidden", that it is not being addressed. Why is the code in the sample hidden behind a redirect?
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 .
are you using some panel or something like that? Regards,Fernando
I have the data type set in the aspx page: