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

radButton in Marker Template

2 Answers 57 Views
Map
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 05 Jan 2015, 08:27 PM
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 Answers, 1 is accepted

Sort by
0
Allen
Top achievements
Rank 1
answered on 05 Jan 2015, 08:29 PM
This must be compatible with IE 9 per our organization has not upgraded.
0
Danail Vasilev
Telerik team
answered on 06 Jan 2015, 05:42 PM
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
Tags
Map
Asked by
Allen
Top achievements
Rank 1
Answers by
Allen
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or