Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    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().

    Leave a comment:


  • sidharth1917
    replied
    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:


  • Isomorphic
    replied
    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:


  • sidharth1917
    replied
    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:


  • Isomorphic
    replied
    You can setCanEdit(false) on the DateItem and then re-enable the icon with setNeverDisable(true) via setPickerIconProperties()

    Leave a comment:


  • Blama
    replied
    Hi sidharth1917.

    there is setTextFieldProperties(), did you try it already?

    Best regards
    Blama

    Leave a comment:


  • sidharth1917
    started a topic DateItem : Not allow user to type the date

    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?

    Thanks
Working...
X