Announcement

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

    sort server side?

    sorry, i don't speak english, but I like smartgwt.

    I do not know ordering a server side ListGrid

    #2
    In native, it seems that there is no sorting and pagination of the LitGrid. If you see showcase, there are no exemple...

    ... asking sjivan is it's if provided ?..

    Comment


      #3
      See the RestDataSource and dsRequest.sortBy. For a large dataset, the client sends a request that includes a requested sort direction.

      Comment


        #4
        Is there a way to force that sorting _always_ happens server side, so for small datasets as well? (I also need this for filtering btw) Do I need the exposure of the Resultset for this by any chance? (which i coming I believe)

        Comment


          #5
          Yes, in SmartClient it's useClientSorting:false, and useClientFiltering:false, but you do need ListGrid.dataProperties or ResultSet to be able to set these.

          Right now, you could turn it off system-wide via:

          Code:
          isc.ResultSet.addProperties({
              useClientFiltering:false,
              useClientSorting:false
          })
          We may add a helper method to a SmartGWT nightly to accommodate this use case.

          Comment


            #6
            SUPER! works like a charm! :D

            Do you have any (system wide) alternatives for:

            http://forums.smartclient.com/showthread.php?t=3514

            as well?

            thanks!

            Bz

            Comment


              #7
              The underlying SmartClient property is filterEditorType, you could use JSNI to set it on the ListGridField object. There's no way to really set it globally (you're trying to set it on a particular field).

              Comment


                #8
                Added ListGridField.setFilterEditorType to SVN.

                Comment

                Working...
                X