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

best strategy?

1 Answer 93 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jeff Dabulis
Top achievements
Rank 1
Jeff Dabulis asked on 07 Dec 2009, 06:20 PM
I have a RadGrid which shows many columns.  Selecting a row causes a client event that writes the record id of the selected row to a cookie.  This works.  Now, I would like to set up a master/details scenario such that below the grid are multiple tabs-- that is, the content displayed below the grid and tabstrip is dependent on both which row in the grid was selected, and also upon which tab is currently selected.  Thus, if the tab selection changes, I would like to dynamically load a usercontrol which should render the content for that tab.  These usercontrols can read the cookie, perform databinding and render themselves.  If the row selection changes, I would similarly like the last loaded control to reload itself.

I have tried a number of things and can't seem to get things right with the page lifecycle and the order in which events fire.  Any suggestions on a general approach?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 10 Dec 2009, 12:32 PM
Hello Jeff,

To see more information along the lines of the requested functionality, please refer to the following resources:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/grdusercontrolruntimeload.html

This can be coupled with parameters (such as the cookie which you mentioned), to reflect the selection of the main grid, and/or any tabs, but the general approach and logic remains the same.

Greetings,

Yavor
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
Ajax
Asked by
Jeff Dabulis
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or