Hi all, i have succesfully added a webdatetimeeditor to a column on my grid, however when i click out to change the value of the cell, the value is restored to the previous value client side, how to i stop this happpening?
Hi,
Maybe configuration of grid column is not correct. To use WebDateTimeEdit, the column should have settings for following properties: Type, EditorControlID and optional DataType (in case if column in DataTable.Columns was not created with that type). The column.Format should not be used, because format will be defined by WebDateTimeEditor.
//DataTable dt = new DataTable("Customer");//dt.Columns.Add("DateColumn", typeof(DateTime));//this.UltraWebGrid1.DataSource = dt;
this.UltraWebGrid1.Columns[0].EditorControlID = this.WebDateTimeEdit1.UniqueID;this.UltraWebGrid1.Columns[0].Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;//this.UltraWebGrid1.Columns[0].DataType = "System.DateTime";
yeah i have done all that first time in displays values hh;mm. then when i click in the cell regardless of spin buttons or not, it changes to todays date. then when i click off and back into the cell, some unknow date is set...
so to recap: format hh:mm
i populate the column with todays date and time "18/02/2009 8:50AM..
so first display is hh:mm: 8:50
then click on cell and it displays the todays date dd mm yy with no time? 18-02-2009
then click off and back on the cell, then it displays some uknown date in backwards format "06-02-2010" <-- where the hell does this come from?
I am creating this grid dynamically but populating from a datatable with a date column.
I am also creating web date time editor in code by controls.add() add mapping it to the column by uniqueId