Adding google map to RadPageView

2 posts, 0 answers
  1. Marvin
    Marvin avatar
    1 posts
    Member since:
    Jul 2015

    Posted 08 Jul 2015 Link to this post

    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).

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    837 posts

    Posted 13 Jul 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top