Announcement

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

    "Select All" checkbox enable issue.

    Hello All,

    In a listGrid I added a checkbox selection using following properties:

    listGrid.setSelectionType(SelectionStyle.SIMPLE);
    listGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
    listGrid.setShowAllRecords(true);

    Now based on some condition, we set record.setCanSelect() to remove the checkbox for the specific records..

    Problem: Just in case user can not select any of the records. i.e. record.setCanSelect(false) for all records, The checkbox at header, that means "Select All" checkbox is still enable.

    Please see the attachment.

    Thanks,
    Minhaj
    Attached Files
    Last edited by Minhaj; 26 Nov 2014, 05:39.

    #2
    Hello Isomorphic,

    Is it a normal behavior or we are doing wrong ?

    Thank,
    Minhaj

    Comment


      #3
      Set canSelectAll:false if you don't want select all.

      Comment


        #4
        Originally posted by Isomorphic View Post
        Set canSelectAll:false if you don't want select all.
        We want SelectAll checkbox as it is work fine in all case except this one.
        The problem is, It should not be enabled when user can not select any of the record based on some condition. Otherwise we have to iterate all the records to set canSelectAll:false

        Thanks

        Comment

        Working...
        X