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

Dynamic RadTabStrip / RadGrids

1 Answer 56 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Iron
Veteran
Iron
David asked on 01 Mar 2011, 06:26 AM
As I am new to Telerik controls I am hoping that you might be able to help me avoid some common missteps.  I have a web page which upon user selection dynamically loads 1 to "n" tabs.  Each tab may have a child set of tabs.  At the final level of tabs the pageview control has a grid control along with several other controls.

So far things appear to be working.  I have a page full of tabs and on each tab I have the required number of tabs and grids each populated with data.  As each of these controls are dynamic in nature I understand that I must recreate the child controls (not the tabs) on each post back.  I am currently doing this and things appears to survive postbacks now.

In my testing I notice that I seem to be repopulating each grid on each tab on every postback.  It would seem more efficient to only populate the currently selected tab.  How to do this eludes me.

Given the dynamic nature of my controls, I do not necessarily know the "ClientID" of the controls at design time.  This makes it rather hard to use $find to find a given grid control.  I am going to have to run some Client side events which given the selected tab, traverses the control collection on the associated PageView control, and finds the Grid Control located on the pageview.  If I knew the Control ID I know how to do this.  Given that I do not know the ID of the control, how to do this eludes me.  Pointers would be appreciated.

Finally I suspect I need to hookup my dynamic grids into the Ajax system.  How do I do this given their dynamic nature?

Thank you for any suggestions you might have.

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 02 Mar 2011, 03:47 PM
Hi David,

Please take a look at this demo describing how to fetch the contents of RadMultiPage on demand using Ajax.

Please let me know if you have further questions.

Regards,
Veronica Milcheva
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TabStrip
Asked by
David
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Veronica
Telerik team
Share this question
or