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

Adding google map to RadPageView

1 Answer 83 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Marvin
Top achievements
Rank 1
Marvin asked on 08 Jul 2015, 04:17 PM

I was interested in adding a google map to a page on a RadMultiPage.  How do I get the javascript to execute whenever the specific RadPageView is actually visible?

* At its core, the google map is an image attached to a DIV tag.  Here's a decent introduction to an older version (http://www.codeproject.com/Articles/291499/Google-Maps-API-V-for-ASP-NET).

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 13 Jul 2015, 11:00 AM
Hello,

A RadPageView is selected and becomes visible when the RadTab it is associated with is clicked. You can use the RadTabStrip's OnClientTabSelected client-side event to get the ID of the currently selected and visible PageView as shown in the code snippet below, and execute your custom logic depending on the value returned by the get_id() method:
function OnClientTabSelected(sender, eventArgs) {
    var multiPage = $find("<%=RadMultiPage1.ClientID %>");
    var pageView = multiPage.get_selectedPageView();
    var pageViewId = pageView.get_id();
}

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Documentation and Tutorials
Asked by
Marvin
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or