Announcement

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

    Boolean value in ListGridFiled always false

    Hi,

    I have Boolean field in ListGrid. Whether I checked or not it always return value as false.

    I have two requirements.

    1. It should return the value true if its checked and false if its unchecked
    2. When I load the grid, Default value should be checked.

    I provided my code below :

    // client side
    ListGridField include = new ListGridField(RENConstants.FieldName.INCLUDE,RENConstants.FieldTitle.INCLUDE, 100); include.setType(ListGridFieldType.BOOLEAN); include.setCanEdit(true);

    //DataSource
    DataSourceBooleanField include = new DataSourceBooleanField(FieldName.INCLUDE, FieldTitle.INCLUDE); setFields(include);
    Last edited by AnutharshaSelvarasa; 20 Sep 2018, 03:21.

    #2
    Sorry, this post doesnít make much sense to us. Youíve defined a Boolean field above, thatís fine. If you want to set up default values, you can do so: deliver the data with false values already populated, or if this is difficult, iterate over the records after data is loaded. Thereís nothing stopping you from either approach.

    Comment


      #3
      Hi,

      Thank you.

      Comment

      Working...
      X