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

Multiple grids, multiple filters, one datasource?

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
J
Top achievements
Rank 1
J asked on 07 Aug 2012, 10:20 PM
Hey guys, 

I'm wondering whether its possible to have one request to the server to get all my data, then display different grids based on seperate filters for each grid?

My problem at the moment is that each grid creates a new data source & therefore a new query to the server, even though the query returns all the data each time. 

I've come across dataSource:cache:"inmemory" but this doesn't seem to help. It's as though I need to create clones of the DataSource after it's returned from the server and modify the filter for each copy.


Any suggestions would be appreciated
Thanks

1 Answer, 1 is accepted

Sort by
0
J
Top achievements
Rank 1
answered on 07 Aug 2012, 10:54 PM
I've just noticed on the queries to the server that my filters are added as part of the query values - GET http://domain.com/myServerScript.aspx?filter%5Blogic%5D=and&filter%5Bfilters%5D%5B0%5D%5Bfield%5D=filterName

I may be misunderstanding but I thought filtering was taken care of clientside by default? http://docs.kendoui.com/api/framework/datasource#serverfiltering booleandefault 
Tags
Grid
Asked by
J
Top achievements
Rank 1
Answers by
J
Top achievements
Rank 1
Share this question
or