Jump to content
Software FX Community

Tooltips in .Net control


icegunner

Recommended Posts

I know that with the Image rendered format, you can use the popupon() and popupoff() javascript methods to handle changes to the tooltips. I'm currently doing that to strip out certain codes from the tooltip before it displays to the user.

Now, I have a window popup that shows the same chart but using the .Net render method. I still need to do the same stripping of codes from the tooltip, but the javascripts aren't working. Is there a way to fix this? Or a better way to handle changes to the tooltip like what I do with the Image?

 

Cheers,

Gunner

Link to comment
Share on other sites

Hi,

 Please note that when you are rendering charts using the .Net client control, the tool tips are no longer handled through javascript. They are managed internally by the .Net client control. If you do need to process your tool tips on the client side, you will need to use client side events to capture the GetTip event that is fired by the control when triggered by a tool tip.

<

script type="text/javascript" lang="JavaScript" for="Chart1" event="GetTip(sender,e)"> e.Text="My New text";   alert(e.Object +" "+ e.Point +" "+ e.Series +" "+ e.Text);</script>

The only problem with this approach is that the user will need to allow Full Trust to the .Net framework for the zone in which the website is being viewed (Internet, Intranet, Trusted Sites) . Additionally, you will need to set the UseClientLoader property of the chart to false for any events to fire.

Also, please remember that it is possible to shape your tool tips in your server side code by using the ToolTipFormat property:

string maskString = "I'm series: "+"%S "+" my value is: "+"%v"; chart1.ToolTipFormat= maskString;

To learn more about this property, please refer to:

http://support.softwarefx.com/OnlineDoc/CfxNet70//WinAPI/Chart_ToolTipFormat.htm

Hope this helps.

 

Regards,

TT 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...