Share control between different radpageviews (tab strip with radmultipage)

3 posts, 0 answers
  1. Tzach Kaufmann
    Tzach Kaufmann avatar
    95 posts
    Member since:
    Aug 2008

    Posted 08 May 2012 Link to this post

    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. Tzach Kaufmann
    Tzach Kaufmann avatar
    95 posts
    Member since:
    Aug 2008

    Posted 08 May 2012 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 11 May 2012 Link to this post

    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.
Back to Top