radButton in Marker Template

3 posts, 0 answers
  1. Allen
    Allen avatar
    7 posts
    Member since:
    Jan 2014

    Posted 05 Jan 2015 Link to this post

    I am looking to place a radbutton which will open a radWindow from the marker tooltip. I cannot seem to get this to work.

    I am setting the tooltip from the code behind which works great except for this one thing. The radbutton will not even show up. I can use a basic HTML <a href> tag and that will show up but no server controls.
     
     the following shows the code that I am using
    TEMPLATE = TEMPLATE + "<button type=\"button\" onclick=\"function openRWdrillDown(){ alert('test test');}\" name=\"" + city + "\">View Details</button>";


                    //<telerik:RadButton ID=\"btnDetails\" runat=\"server\" OnClientClicked=\"openRWdrillDown\" CommandArgument=\"" + city.Replace(' ', '@') + "\" Text=\"View Details\" ButtonType=\"LinkButton\" />
                    mark.TooltipSettings.Content = TEMPLATE;

    any guide as to how to get this to work either JavaScript or server side.

  2. Allen
    Allen avatar
    7 posts
    Member since:
    Jan 2014

    Posted 05 Jan 2015 Link to this post

    This must be compatible with IE 9 per our organization has not upgraded.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 06 Jan 2015 Link to this post

    Hello Allen,

    The RadMap control has an entire client-side rendering (i.e., it is an ASP.NET server-side wrapper of the Kendo Map widget) and therefore you cannot place server-side controls in its templates.

    What I can suggest, however, is that you integrate the RadToolTip control, which has already been showcased in the Map - Shapes Layer online demo.

    Regards,
    Danail Vasilev
    Telerik
Back to Top