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

[Solved] set filtering, grouping, sorting and page number of Grid through javascript

0 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
adeel zahid
Top achievements
Rank 1
adeel zahid asked on 16 Sep 2011, 08:36 AM
Hello,
i have many grids that are ajax bound. users do apply filtering, grouping, sorting and navigate to different pages. All this information is stored in a cookie. when user comes back i want to show the grid the way user left it the last time he visited the page. for that i have following information set in view data
ViewData["page"] // ' ', 1, 2, 3 etc
ViewData["filter"] // ' ', Name~eq~'adeel', Name~startswith~'mu'
ViewData["orderBy"]  // '  ', Name-asc, Name-desc etc
ViewData["groupBy"] // ' ' City-asc, City-desc

 i want to apply this information on grid through javascript. i have downloaded and run a demo application made available here that performs similar function but there are few issues in the application mainly
it is too old and using older version. A lot has changed since then

  1. it throws error when groupBy is present in ViewData
  2. it applies filtering but does not update the filtering widget of corresponding title
  3. The techinique described there does not work in Telerik 2011 Q2 2712 release except page navigation
  4. in 2011 Q1 things work but a little differently
is there a client side api provided with grid that allows me to accomplish these tasks? In some time i will upload the demo projects both with Q1 and Q2 release
Update: I have attached demo apps both with 2011 Q1 and Q2 release. Please have a look
regards
Tags
Grid
Asked by
adeel zahid
Top achievements
Rank 1
Share this question
or