I try to use the EditorProviders width the WebDateChooserProvider for date fields this works fine. But when I use the WebDateChooserProvider for a nullable column then I get the error below.
Editor with ID: NullableDateColumn cannot edit column with Key: NullableDateColumn. The editor does not support the column type.
Is it a known issue that WebDateChooserProvider not support nullable datetime fields. Is there a solution to use the EditorProvider for nullable datetime?
I had the exact same problem described above, except with WebNumericEditProvider. First I implemented a custom editor provider as suggested that returned "true" for "System.String" too. But this seemed a like hack to me, so I started to check both the code and the markup and found out the following.
1. You need to specify the DataType attribute on every column you want to make editable.
<ig:BoundDataField DataFieldName="MonthValue1"
Key="MonthValue1" Width="60px" DataFormatString="{0:N2}" DataType="System.Decimal">
</ig:BoundDataField>
2. Wire-up the editor provider with the column in markup
<ig:EditingCore>
<Behaviors>
<ig:CellEditing>
<ColumnSettings>
...
<ig:EditingColumnSetting ColumnKey="MonthValue1" EditorID="wtnpEffortEditorProvider" />
</ColumnSettings>
</ig:CellEditing>
</Behaviors>
</ig:EditingCore>
I'm not sure you _need_ to do it in the markup, I assume the same would work from code-behind, but I had no time to check.
Hope this helps.
My solution is to implement a class that extends WebDateTimeEditProvider. See my code example earlier in this thread.
In the aspx file you add the NullableDateTimeEditorProvider tag in the EditorProviders tag.
<ext:NullableDateTimeEditorProvider ID="datefield" />
Instead the default WebDateTimeEditProvider .
<ig:WebDateTimeEditProvider id="datefield" />
And you need to register the assembly of the NullableDateTimeEditorProvider in the top of the aspx file.
<%
@ Register Assembly="InfragisticsExtensions" Namespace="InfragisticsExtensions" TagPrefix="ext" %>
How you you use this NullableDataTimeEditorProvider solution to replace the WebDateChooserProvider? Is there a way to do it in the design mode or must it be done programmatically (add the provider during run time).
ThanksROB
Have you contacted the dev support and provided them with this work item number?
It is marked as internal for now. As soon as your contact information gets associated with it it will become public.
I'm looking for the work item 18040. But I can't find it. Maybe you have a direct link to the webpage with extra information of this bug.
Thank you