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

Client side caching and filtering using anchor

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David Hosey
Top achievements
Rank 1
David Hosey asked on 18 Dec 2009, 11:02 AM
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

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 28 Dec 2009, 11:48 AM
Hello David,

I am afraid I do not completely understand the functionality which you are trying to implement. Can you please elaborate a bit more? Are you binding RadGrid on server or you are using clint-side data binding?

However RadGrid does not have out-of-box filtering like the on you have described(gmail kind of filtering).

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
David Hosey
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or