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

Need Sample for Row Select Causing User Control Update

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 25 Mar 2009, 05:49 PM
I have a situation where I have a page with a splitter on it.  In one split pane I have a user control with a radgrid in it.  In another split pane I have another user control that will display information based on the selected radgrid row.  I'm not sure the best way to have the radgrid row selection trigger an update.

I'm looking for an example where selecting a row in the radgrid can pass a value from that selected row to another user control in another split pane so that it can update its display based on that passed value.

Any good examples out there already?

Also, I have a similar need for another example of a treeview causing a grid to be updated.  In a third pane on this screen, if the user selects a particular tree node in a treeview, I need to have that trigger the radgrid to update its display based on the tree node selected.

Thx

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 31 Mar 2009, 08:13 AM
Hi Kevin,

Basically, the controls can be related as shown in the following example.
In your particular case, since the controls will reside in other naming containers, you can trigger an AjaxRequest to the server, or simply postback, get a reference the selected item's key, and rebind the other grid(s). In this way, the data will be refreshed as expected.
I hope this suggestion gets you started properly.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Kevin
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Share this question
or