Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
WebDateChooser As Column Editor in UltraWebGrid
posted

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