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

Share control between different radpageviews (tab strip with radmultipage)

2 Answers 51 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 08 May 2012, 07:12 PM
Hi,

I have a tabstrip with radmultipage.
Is it possible to share controls between different radpageviews?

For example, my tabs are:  France, Italy, Spain
in every radpageview I want a radcombobox with a list of cities.
I want to share the radcombobox and to fill the values according to the tab selection.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Covertix
Top achievements
Rank 1
answered on 08 May 2012, 07:46 PM
OK, I used this example http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx
to have the same control id in different pages.

but now I have a problem to access the control on client side.

using the demo example:
I want to access the grid in DefaultCS.aspx.
How can I find it?

Thanks
0
Dimitar Terziev
Telerik team
answered on 11 May 2012, 08:41 AM
Hello,

In the mentioned demo page there is no grid on the Default page so I presume that you refer to the one in the CustomersCS user control. In order to access the client-side object of the grid the following code should be used:
var multipage = $find("RadMultiPage1");
                var element = multipage.get_pageViews().getPageView(0).get_element();
                var Grid = $telerik.findControl(element,"RadGrid1");


All the best,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Covertix
Top achievements
Rank 1
Answers by
Covertix
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or