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

[Solved] Passing Grid.SelecteditemID to RadTabStrip

2 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
goyaweb
Top achievements
Rank 2
goyaweb asked on 04 Jun 2009, 02:47 PM
I'm building a master detail kind of application where you first select a client in a radgrid and then on selection it updates a series of radtab's with detailed information about that client (payments, events, calls etc). How would I handle this scenario? How can I pass the grid's selecteditemid tot the datasources inside the radtabs and update them?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Jun 2009, 06:49 AM
Hello,

You could place your TabStrip in the NestedViewTemplate of the RadGrid and use a hidden label in the NestedViewTemplate to store the selected row id. Then set your datasource based on the label text to populate controls in the NeatedViewTemplate. Refer to the following online demo which illustrates on how to get this done:
Hierarchy with Templates
You can alter the logic according to your requirement.

Thanks
Princy.
0
goyaweb
Top achievements
Rank 2
answered on 05 Jun 2009, 12:28 PM
thanks for the reply. Already saw that demo. My special requirement is that the tabstrip should be outside of the mastergrid. I figured it out by passing the ID allong using SelectedIndexChanged event to the child grid's inside the tabs using datakeys. But that event fires on serverside. Would be nice to do it clientside but guess that's not so straight forward.
Tags
Grid
Asked by
goyaweb
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
goyaweb
Top achievements
Rank 2
Share this question
or