It appears that xamDateTimeEditor doesn't have a dropdown calendar for choosing dates - is that correct ? I must admit to being somewhat surprised that it's literally just a dateTime editor, and lacks any DateTimePicker functionality.
Thanks,
Andy Mackie
Hi there!
The DateTimeEditor now has a dropdown in the new 8.2 release.
Horen
How to set the drop down property?
I set the editortype in codebehind
.EditorType = typeof(XamDateTimeEditor);
So how to set the property???
Hi,
I want to using the XamDataTimeEditor in a cell, but I want to use it as a DropDown calendar control? can do it? or any other alternative?
Thanks
Yes, you can. The XamDataGrid will generate that by default if you value type is DateTime. You can see examples of that in the XamFeatureBrowser, which is installed together with our products.
What I want (which I think is the same thing others have asked for):
Given a xamDataGrid with a column of Date or DateTime data, I want to click on one of the date cells, and have a calendar pop-up appear.
What is happening (using eval 9.1): There is no popup. So the date field looks says something like "04/05/2009". I take it that the in-cell control (the control that displays the date formatting, with the fields separated by forward slashes) is xamDateTimeEditor.
I see from the Editors.pdf document that there is a calendar control (xamMonthCalendar) but I can't tell whether that calendar control can be used within a xamDataGrid. The examples in Editors.pdf appear to be adding the xamMonthCalendar directly onto a form, but I want it to pop up when I edit a date cell in a data grid.
Since you mentioned the XamFeatureBrowser, I looked through it. I do not see any examples of pop-up calendar.
Thanks for any help!
p.s. I probably should have mentioned: I'm doing an evaluation, and I have Infragistics3.Wpf.v9.1.Express
-- is the xamMonthCalendar control even included in the 9.1.Express ? Or should I have downloaded that other, more complete eval package if I want to use the XamMonthCalendar?
XamMonthCalendar is not part of the express assemblies.
Thanks, that helped. I have the full eval now and I do see the calendar appear as a pop-up.
But, another problem: How to support TIME data as well as date data?
If my xaml specifies the FieldSettings, so that it specifies EditAsType is sys:DateTime, then I get the calendar pop-up when editing dates.
The problem is, some of my DateTime columns do actually include time data. If my xaml specifies EditAsType to be sys:DateTime, then yes, the calendar pop-up is available, but, then my Time data disappears altogether -- I can no longer see the time portions of my DateTime values (even when I'm not editing).
So if I include the EditAsType, then I can't see my time data. If I omit the EditAsType, then I don't see the calendar popup.
So, is this a known problem (the fact that Times disappear when you set EditAsType to sys:DateTime)? And if so, is there a work-around?
Thanks!