Announcement

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

    How to enable clear sort option on all fields of a ListGrid

    Hi,

    Could you please let me know as to how I can enable clear sort option on all fields of list grid?

    Thank You.

    #2
    ListGrid.unsort()

    Comment


      #3
      Thank you for your response. But i want the "clear sort" option to be displayed on every field or column of the grid. Please let me know

      Comment


        #4
        Hi,

        if you want to remove a field from a multisort one-by-one, use the Configure Sort dialog - you got the sorting that way, then. I don't know of a single ListGrid- or ListGridField-Setting for this.

        To remove all sorts these samples might help you:
        http://www.smartclient.com/smartgwt/...rid_top_header
        http://www.smartclient.com/smartgwt/...ce_custom_menu

        Still no switch, but a way to do this manually.

        Best regards,
        Blama

        Comment


          #5
          Thanks Blama.

          Comment


            #6
            Thing is I have been asked to disable multisort option on the grid. On setting setCanMultiSort to false, configure sort and clear sort options are now not showing up.

            So, the only way to show clear sort option on each field of the grid, is to again set setCanMultiSort option to true?

            Comment


              #7
              Hi avitaurus19,

              while I don't see the benefit of removing a (single-)sort, you could still ask Isomorphic to enable the "Remove Sort" in the Column Header Menu when either setCanMultiSort or setCanSort is enabled.

              Other way is to do it on your own, either with some button external to the grid or a custom menu. See the samples above.

              Best regards,
              Blama

              Comment

              Working...
              X