Pass Variables to other Tab

3 posts, 0 answers
  1. Velissarios
    Velissarios avatar
    8 posts
    Member since:
    Jun 2011

    Posted 30 Oct 2011 Link to this post

    Hello Dear Sir or Madam

    In http://portal.recris.info/ , Ι have implemented 4 tabs, using RadTabStrip and RadMultipage.
    In each Tab I'm loading different pages from the same site.
    As you can see, at the First Tab, called Accidents, I have put a RadGrid with several data.
    At the last column of the Grid, I have an asp link which is directing to a google map I have implemented in the same site.
    This link is passing to the map, the ID of the record.

    I have also this whole map, with all the markers, to the 3rd Tab (called: Accident's map)
    Currently the link at the Grid, is opening the map to a new window (target="_blank")
    Is it possible to open the link in the 3rd tab instead? (using some kind of code)

    I want to use this implementation to another site also.

    Thank you in advance for your reply.

    Velissarios
    vhousos@gmail.com
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 02 Nov 2011 Link to this post

    Hi Velissarios,

    Yes you could open the link in the third tab as requested. There should be little codding though. First you should prevent the default behavior of the link so that it won't navigate when clicked. Then you will subscribe to the click event of the link using jQuery for instance. In the event handler function you will find the client-side object of the RadMultiPage, then you should get reference to the third pageview and set its ContentUrl property to be the one where the link points too. Once the ContentUrl property is set you will manually select the third tab and the content in the pageview will be loaded. A side note, in the mark-up of the page you should set the ContentUrl property of the third PageView to an empty string so it will render the necessary iframe element where the content of the URL will be loaded.

    For more information about the client-side API of the RadMultiPage and RadPageView please check the following help articles here and here.

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Velissarios
    Velissarios avatar
    8 posts
    Member since:
    Jun 2011

    Posted 22 Nov 2011 Link to this post

    Dear Dimitar

    Thank you for your reply.
    It's a little difficult for me to implement it, but I will try.

    Regards,
    Velissarios Housos
Back to Top