ImageMap Issue

4 posts, 0 answers
  1. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 08 Dec 2010 Link to this post

    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
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 10 Dec 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 10 Dec 2010 Link to this post

    Hello,

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

    Regards,
    Bader
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 15 Dec 2010 Link to this post

    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.
Back to Top