I have a grid with start and end date columns. the default value when adding new rows is supposed to be null. For some reason, when I tab through the cells of the row, and tab into the webdatechooser column cell, the cell populates itself with the min date value. I am not even selecting anything from the drop down. How do you maintain the null value while tabbing through the cells in a row?
The date columns have a webdatechooser as an edit control.
<igsch:webdatechooser AllowNull="true" NullDateLabel="" Value="" MinDate="01/01/2003" NullValueRepresentation="DBNull" id="wdcDate" runat="server" />
Hi Jim,
Did you ever figure out how to make the minDate NULL?
Thanks for sharing both solutions guys - I will make sure this is addressed in docs and/or KB.
Thanks again.
Thanks for the info, here I what I ended up doing:
<igsch:webdatechooser AllowNull="true" NullDateLabel="" Value="" Format="Short" NullValueRepresentation="DBNull" id="wdcDate" runat="server" />
I had the same problem with the WebDateChooser in a WebGrid. Regardless of what I did everytime the user clicked on the webdatechooser a min date would show even though I didn't set the min date in the control.
I solved this setting the value to null to the cell that contains a date in the InitializeLayoutHandler as follows:
{
var grid = igtbl_getGridById(gridName)
grid.Rows.getRow(i).getCellFromKey("DOSFrom").setValue(null);
}
It works and now everytime the user clicks on the WebDateChooser in a Grid there is not information there.
Hope it helps