This is a migrated thread and some comments may be shown as answers.

passing filter & sort params to grid from client without hitting the controller

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manoj
Top achievements
Rank 1
Manoj asked on 17 Jun 2014, 08:57 AM
Hello,

I have an grid bounded to some data & now I want to apply some pre-defined filters & sort to the Grid. If I use the methods dataSource.filter(initialFilter) or dataSource.sort(sortParams) an immediate request is sent to the controller. 

I want to do this operations offline & once I have added both the Sorts & Filters I want to do dataSource.read() which than my server side code shall take care of the added sorts & filters

Can you let me know how can I achieve the same?

Thanks & Regards,
Manoj Kapoor

1 Answer, 1 is accepted

Sort by
0
Manoj
Top achievements
Rank 1
answered on 17 Jun 2014, 12:50 PM
I got it addressed by pushing the sorts within dataSource._sort before calling the read method.
Tags
Grid
Asked by
Manoj
Top achievements
Rank 1
Answers by
Manoj
Top achievements
Rank 1
Share this question
or