Marker Tooltip Show on Load

4 posts, 0 answers
  1. RBarnes
    RBarnes avatar
    46 posts
    Member since:
    Oct 2012

    Posted 12 Dec 2014 Link to this post

    I'm adding my markers and tooltip in code behind, is there an easy way to get the tooltip to be opened when the page loads?

    ShowOnPageLoad="True" for example

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 15 Dec 2014 Link to this post

    Hello Roger,

    Could you please provide more details? I am not sure, but from the description provided it seems that there is only one marker added? Is that correct?

    If the native marker's tooltip is used, you should be able to dynamically open the popup element using the RadMap's client-side API. The tooltip is actually a Kendo tooltip and you can use its show() method to show it.

    If you have difficulties on the implementation, please provide more details how the marker is added, and what is the exact scenario, so that I could assist you properly.

    Regards,
    Ianko
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. RBarnes
    RBarnes avatar
    46 posts
    Member since:
    Oct 2012

    Posted 17 Dec 2014 in reply to Ianko Link to this post

    Yes, in this case there is a single marker added with a tooltip, bound via codebehind and I want the tooltip to be shown when the page loads.
  5. RBarnes
    RBarnes avatar
    46 posts
    Member since:
    Oct 2012

    Posted 18 Dec 2014 in reply to RBarnes Link to this post


    Got it working like I want

    <ClientEvents OnLoad="map_load"/>

     

    function map_load(sender, args) {
                   map = sender.get_kendoWidget();
                   //If we have items, we'll show our item tooltip
                   if (map.markers.items.length > 0) {
                       map.markers.items[0].tooltip.show();                   
                   }
               }
Back to Top