Announcement

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

    ListGrid with selectionAppearance:checkBox - hide/disable checkbox in column header

    Hi,

    I have a listgrid with selection appearance set to checkbox
    i.e. grid.setSelectionAppearance(SelectionAppearance.CHECKBOX). This
    brings up the checkbox in the 1st column with a checkbox in the header
    to enable all records to be selected.

    However, an attempt to select all the records through the header throws
    up the warning:

    "Can't select that many records at once. Please try working in smaller batches."

    This is understandable since the listgrid contains 1000's of records.

    What I need is a way to hide/disable the checkbox in the header to prevent
    users from attempting to select all records in such cases. Is this possible? If yes, how can I achieve it?

    #2
    Hello Isomorphic,

    Can you please let me know if it is possible to hide/disable the checkbox in the header and how to achieve it?

    Comment


      #3
      Hello Mouli,

      It is by design that the checkbox is still shown. It's purpose is to tell the user how they can still achieve what they are trying to do (by working in smaller batches), rather than having the feature simply disappear, such that the user doesn't know how to get it back.

      Comment


        #4
        Hello Isomorphic,

        Thanks for the reply.

        From an user's perspective, I would like the checkbox disabled
        (and possibly have the warning message displayed as a hover text) rather
        than allow the selection and then throw up an error.

        You can possibly consider this request as a wish list.

        Thanks,
        Mouli

        Comment


          #5
          In later versions the setCanSelectAll method of ListGrid can be used to hide the checkbox from the header.
          https://www.smartclient.com/smartgwt....lang.Boolean-

          Comment

          Working...
          X