Hi,
Is there any way to make an ultracalendarcombo control read-only? I dont want the user to be able to select or edit the text within the control, essentially making it behave like a dropdown with its style set to dropdownlist.
Also, I have a couple of this controls into a search form, I would like the default values of this controls to be set to empty or all such that they dont affect the search results unless the user changes them. A way to reset their value to empty is also needed. Is there any way to do this? thx
The control exposes a ReadOnly property, but that prevents the dropdown from appearing, so I don't think you want that. You could hack this out by handling the control's KeyPress event and eating the keystroke, but the gotcha there is that doesn't prevent pasting a value in.
You can display any string you like when the value is null using the NullDateLabel property.
So whats the solution then? I have the same problem in a textbox with a right dropdown button. basically i want both of these to be readonly and i dont want the cursor to appear in the textbox when the user clicks the control (i.e. never go into edit mode)