Hi, we are working in a WebDataGrid and need a column to be DateTime format. So we setup a DatePickerProvider in that column with no result. When the grid is rendered it appears a "calendar icon" in that cell (we are using Adding Behavior) but when I click in that icon nothing happens.
My markup have the declaration of the Editor Provider, and in code behind I associated to column:RowAddingColumnSetting config = new RowAddingColumnSetting();config.ColumnKey = "Date";config.EditorID = "dppDate";config.ReadOnly = false;wdg.Behaviors.EditingCore.Behaviors.RowAdding.ColumnSettings.Add(config);
I dont know if I'm missing some attributes or something related? Can you help me?
Hello,
Thank you for contacting us.
Below you can find a sample that is showing how to use DatePickerProvider when you try to update or add a new row.
Code snippet:
<Behaviors> <ig:CellEditing Enabled="True" EnableInheritance="True"> <ig:EditModeActions EnableOnActive="True" /> <ColumnSettings> <ig:EditingColumnSetting ColumnKey="OrderDate" EditorID="DateInputProvider" /> </ColumnSettings> </ig:CellEditing> <ig:RowAdding Enabled="True" Alignment="Top" EditModeActions-EnableOnActive="True"
EditModeActions-MouseClick="Single"> <ColumnSettings> <ig:RowAddingColumnSetting ColumnKey="OrderDate" EditorID="DateInputProvider" /> </ColumnSettings> <EditModeActions MouseClick="Single" EnableOnActive="True"></EditModeActions> </ig:RowAdding> </Behaviors>
Online sample:
http://ko.infragistics.com/samples/aspnet/date-picker/webdatepicker-as-editor-provider
Let me know if I may be of further assistance.