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???
Hello,
Can you please explain what exactly are you trying to do?
Do you use a XamDataTimeEditor inside a cell of the XamDataGrid and what is the issue with the drop-down ?
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!
The default mask for a DateTime datatype is "{date}". You can either change the default for all masked editors using the RegisterDefaultMaskForType method or you can just set the Mask for this editor instance (i.e. add a setter for the Mask property and use a value like "{}{date} {time}").
Yes, I did already download the trial version, earlier today.
My follow-up question, asking about Times not showing up when I use the calendar pop-up, was posted after I replaced the express install with the trial install.
If you are evaluating our product you should really download and install the trial version. In contrast to the Express, the trial has the full functionality and all of the controls in it.
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!
XamMonthCalendar is not part of the express assemblies.