Hi Team
Need Input Mask functionality like UltraDatetimeeditor for UltraCalendarCombo.
Is there any work way around for this one?
I need Input Mask like this __/__/____
Hello Vinay,After investigating and doing some research, setting input masks for UltraCalendarCombo has been determined to be a product idea. You can suggest new product ideas for future versions (or vote for existing ones) at https://www.infragistics.com/community/ideas.Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. You can also link back to this thread for additional details.Thank you in advance to submitting your product idea.
The main difference between UltraDateTimeEditor and UltraCalendarCombo is that the UltraDateTimeEditor is masked and UltraCalendarCombo does not. The other major difference is the styling. Just out of curiosity, if you want a mask, why not use UltraDateTimeEditor? Presumably, there is some feature of UltraCalendarCombo that you want that UltraDateTimeEditor doesn't have? Maybe there's a way for you to get UltraDateTimeEditor to do what you need.
Hi Mike
Thanks for your Reply.
Previous we had UltraDateTimeEditor control in all our Forms. But UltraDateTimeEditor does not support shading of the particular days in calendar but ultracalendarcombo does required thing. So we went replacing ultradatetimeeditor with ultracalendarcombo. But later we got to know that ultra calendarcombo does not support Input Mask feature.
Okay, so you basically have two requirements:
1) You need to highlight individual days within the dropdown calendar.
2) You want masking on the edit portion.
There's no way to do that with the built-in controls. But you could combine controls and create your own sort've hybrid control. It's not trivial to implement, but it's probably not as difficult as you might think.
The basic approach I would take is to use UltraDateTimeEditor. You have to use that control if you want masking. But you don't want to use the built-in dropdown for this control because it can't highlight days. So what you do is turn off the default DropDown and replace it with a DropDownEditorButton which contains an UltraMonthViewMulti (which is essentially what the UltraCalendarCombo is using as it's dropdown).
Then you have to handle a couple of synch points, like selecting the date on the dropdown when the user drops down the list, and also changing the date on the control when they select a date from the dropdown.
I whipped up a quick sample and handled a few of the little quirks I found and I have attached it here. UltraDateTimeEditorWithUltraMonthViewMultiDropDown.zip
A couple of caveats to be aware of when using this approach:
1) When you drop down the calendar, you may notice that the form loses focus. The form's caption is no longer highlighted. This is because the dropdown calendar is taking focus. We work around that in the dropdown controls, but it's pretty tough to do and it's not a big deal, so I didn't go down that road here.
2) I didn't expose a way for you to easily highlight dates on the list. You might want to expose a property on the control so you can get or set the CalendarLook on the internal UltraMonthMonthViewMulti so you can do that. Or maybe just do is as a method or something where you pass in a date and an Appearance and you set it that way.
3) I didn't do extensive testing on this, so there could be other issues or synch points that I missed, but it works pretty well as far as I can see.