Announcement

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

    validation messages in SpinnerItem inside a listgrid

    Hello,

    I have a listgrid with spinnerItem. When user enters there a letter or another invalid value, no error message is shown, and value isn't saved in spinner.

    How can I show an error message in this case?

    Code:
    ListGrid countryGrid = new ListGrid();
    countryGrid.setCanEdit(true);
    countryGrid.setEditEvent(ListGridEditEvent.CLICK);
    
    SpinnerItem spinnerItem = new SpinnerItem();
    spinnerItem.setMin(5);
    spinnerItem.setMax(15);
    
    ListGridField valueField = new ListGridField("value", "Value");
    valueField.setEditorType(item);
    
    countryGrid.setFields(valueField);
    thank you
Working...
X