setEditorProperties(new DateItem()) doesn't apply any custom properties.
You need to create a DateItem, set the properties you want to enforce on it, and then pass it to setEditorProperties().
Announcement
Collapse
No announcement yet.
X
-
I tried setEditorProperties(new DateItem()) but no success. My requirement is to disable the textbox in listgrid field and just show a calendar icon to choose date. There is no setPickerIconProperties() in listgridfield. Kindly suggest.
Leave a comment:
-
You can do the same thing - see ListGridField.setEditorProperties().
If you want to do this for all Date items, you can do so globally via DateItem/DatetimeItem.setDefaultProperties()
Leave a comment:
-
Thanks Isomorphic ,the above solution worked in the Form. I also want to achieve the same in listgrid. The type in listgrid is datetime. Could you please suggest me how can I restrict user to select value from date picker only.? Thanks in advance.
Leave a comment:
-
You can setCanEdit(false) on the DateItem and then re-enable the icon with setNeverDisable(true) via setPickerIconProperties()
Leave a comment:
-
Leave a comment:
-
DateItem : Not allow user to type the date
SmartClient Version: v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)
Hi,
I want to allow the user to just pick the date from the date picker and not allow him to type the date. Please let me know how can I achieve the same?
ThanksTags: None
Leave a comment: