Announcement

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

    Can I set grids criteria but avoid requesting data immediately?

    Hi,
    In my ListGrid which uses RestDataSource I need to send a flag to the server and then resort the grid using server-side sort. So I have tried:

    grid.setCriteria(criteria);
    grid.sort(fieldName, direction);

    However it looks like the call to setCriteia() is making a server request to get updated data. Is there way to set grid's criteria without it requesting the data, and have it issue a request only when sort() is called?

    Regards.
    PS: I am using SmartClient 9 and IE9

    #2
    Have you tried a grid.fetchData(criteria, callback, param) where param has your desired sort?

    Comment


      #3
      Thanks for the reply: it kind of works in a way that sorting happens, as well as the passing of the criteria, but the grid column header does not have sorted-by arrow...

      Comment

      Working...
      X