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

Pass Variables to other Tab

2 Answers 112 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Velissarios
Top achievements
Rank 1
Velissarios asked on 30 Oct 2011, 12:00 PM
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 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 02 Nov 2011, 03:12 PM
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
0
Velissarios
Top achievements
Rank 1
answered on 22 Nov 2011, 10:58 AM
Dear Dimitar

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

Regards,
Velissarios Housos
Tags
TabStrip
Asked by
Velissarios
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Velissarios
Top achievements
Rank 1
Share this question
or