Hi
I am new to the XamDataGrid(using the trial version) and i would like to know how to use a datepicker control(or a XamDateTimeEditor maybe..) within a cell when it is being edited.
Thanks in advance
Hello,
The XamDataTimeEditor is the default editor for a cell, if its value is of type DateTime. If you bind the grid to a source, which has DateTime values, XamDateTimeEditor will automatically appear in the cell. Another way to do this is to set the EditorType to XamDateTimeEditor in the settings of the Field like this:
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
<igDP:Field.Settings>
<igDP:FieldSettings EditorType="{x:Type igEditors:XamDateTimeEditor}">
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamDateTimeEditor}">
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
Hope this helps,
Alex.
Hi Alex,
Thanks for the reply but i am still facing some problems.
1.The Property to which the field is bound is of Type Datetime but still the defualt OnEdit behaviour shows up a text box instead of a datetime control
2.I tried explicitly setting the Editor type as u have said and used following namespace for editors 'xmlns:igEditor="http://infragistics.com/Editors" ' but no luck, i am getting a compilation error("Type reference cannot find a public type named XamDateTimeEditor").
And also i did not find (through the object browser) XamDateTimeEditor in the assembly Infragistics.Windows.Editors
Is it an installation problem ? or am i messing it up.
Thanks again
Abhilash
Thanks andrew , i'll check that out
You would have to use the non-Express versions - i.e. the Full version - so you would need to download the Win Client install.
Yes Andrew you are right.Then i'll have to use different assembly versions i guess.
So, could you tell which versions to use.
Thanks
I'm guessing that you are using the Express versions of the assemblies. The Express versions do not include the masked editors like XamMaskedEditor, XamDateTimeEditor, etc. - only the XamTextEditor and XamCheckEditor.
Hello ABhilash,
I have attached a sample with a sample project with different types of editors. There is one field with a XamDateTimeEditor.
Hope this helps you.