This is a migrated thread and some comments may be shown as answers.
rebinding two or more grids at once
0 Answers 11 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Todor
Top achievements
Rank 1
Todor asked on 09 Jan 2011, 11:40 PM
Hi,

Haven't seen a similar thread before.
Generally, I am facing with a problem where I need to rebind two grids and to get some extra data from the server at once. If I use client side rebind method on each grid and a custom ajax call for the extra data it would make 3 ajax calls which I want to avoid. I guess I have to make a custom ajax request where I need on the client side to prepare and combine data necessary to rebind both grids, on the server - to prepare and return a "combined" JSON object with data necessary to bind each grid, which on the client to be "splitted" back and to call grid.dataBind method on each grid with its own "rebinding" data.
I am just wondering is that possible to be accomplished in a some elegant way, i.e. it would be the best if it can be worked out something that reuse methods that are used by default to prepare (sort/filter/group) data for a "single" rebind scenario (using GridModel class and GridAction attribute), and if there is some ready example around I would be glad if somebody can send?

Kind regards
Todor Mihailov
Tags
Grid
Asked by
Todor
Top achievements
Rank 1
Share this question
or