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

ImageMap Issue

3 Answers 67 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Bader
Top achievements
Rank 1
Bader asked on 08 Dec 2010, 09:15 AM
Hello,

I'm wonder if I can color the hotspots of the imagemap control (based on the demo http://demos.telerik.com/aspnet-ajax/tooltip/examples/imagemaptooltipmanager/defaultcs.aspx). In other words, for example, I need to color the "France" country in yellow and "Italy" in red and so on. And in addition the tooltip must be colored (BackColor Property) in the same color of the suitable hotspot.

Please, I need your help,
It is apprecited to send me the modified code if it is possible.

Regards,
Bader

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 10 Dec 2010, 04:54 PM
Hello Bader,

 Straight to your questions:


1) The image map is actually one single image which has some areas defined with coordinates. This being said, to have different colors for different areas you should have the image with the desired areas and colors - since this is an image you cannot set background colors but you should use sa colored image.

2) You can change the background color of the tooltip by using the OnClientShow event. You should reference the popup element there and change the background by using code similar to the one below:

var popupElement = sender.get_popupElement();
popupElement.style.backgroundColor = "Red";


Kind regards,
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Bader
Top achievements
Rank 1
answered on 10 Dec 2010, 09:05 PM
Hello,

Thank you for your reply,
Can silverlight supports this idea (Color the hotspots)? If so, please send me links or code.

Regards,
Bader
0
Svetlina Anati
Telerik team
answered on 15 Dec 2010, 02:04 PM
Hi Bader,

 Our support system is concentrated on providing support for RadControls only and this thread is for RadToolTip for ASP.NET AJAX in particular. What I can suggest is to search the net for some solution, e.g below:

http://www.codeproject.com/KB/silverlight/Silverlight_Image_Map.aspx?msg=3337091
http://www.google.bg/#hl=bg&biw=1659&bih=827&rlz=1W1ADFA_en&q=hotspot+silverlight+color&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=adec882f77665cfb

Note, however, that having a colored image is the easiest and cleanest solution which developers usually use in this case.

Greetings,
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ToolTip
Asked by
Bader
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Bader
Top achievements
Rank 1
Share this question
or