Hello,
I am looking for ideally a sample project or some guidance on how to have a clients-side caching for a Rad Grid that can be filtered using html anchor passed in URL. (something like what you get in Gmail, ie: http://mail.google.com/mail/?ui=2&shva=1#inbox or http://mail.google.com/mail/?ui=2&shva=1#search/Telerik)
I have seen the sample projects and demo for client-caching and also filtering. Below I have explained a scenario of what I want to achieve:
I get the data from database using one of these methods(Linq, WebService.asmx or WebDataService.svc) and then Cache it so paging or filtering should not require anymore call to database. (Sample code: http://demos.telerik.com/aspnet-ajax/grid/examples/performance/linq/defaultcs.aspx)
Now I want to have a separate search box (Not the default RadGrid Filter templates) like in Gmail. Only that I am interested to search on one field which is customer name shown in my grid.
Now is there a way that using JavaScript on the client side I can get the grid data, search on one of the column (Customer Name) and bound the filtered result back to the grid again. I would like to pass the search result as html anchor in the url, something like this:
http://www.mySite.com/default.aspx#Search/David or, if not possible http://www.mySite.com/default.aspx?Search=David |
So the main is how to access the cached data in javascript, filter it and bound it again to the RadGrid.
Any idea, hope I have explained this clearly.
Many thanks