Jump to content
Software FX Community

Context Menu problems with chart as image


User (Legacy)

Recommended Posts

I'm generating a chart as an image with the latest version of ChartFX for VS 

2005. I am having the following issues with regard to context menus:

1. When I right-click on the chart image, the ChartFX context menu appears

but so does the browser's default context menu (usually right on top of the

char menu).

2. Disabling the context menu by setting Chart.ContextMenus=false seems to

have no effect. Still get a context menu (this does not happen if I use the

.NET control).

3. Attempts to set the Link.OnContextMenu property, which says if should be

set to javascript that will execute on the client, seem to have no effect. I

set this property for every series in my chart, for example, but it doesn't

execute when I click on a series. Interestingly, I do see a couple of

entries in the image map which contain my javascript but each bar in the bar

chart still has the default contextmenu javascript call associated with it

in the image map.

Incidently - there are still many places in the help that talk about image

chart generation as a completely non-interactive thing even though you now

have context menus, toolsbars, etc. Also, the very first note in the release

note for this (now released) version of ChartFX says that you must have VS

2005 RC or older. Of course, that is no longer correct.

Hope that all makes sense! Thanks for the help in advance.

Fred P.

Link to comment
Share on other sites

> 1. When I right-click on the chart image, the ChartFX context menu appears 

> but so does the browser's default context menu (usually right on top of

> the char menu).

You may be experiencing a bug that has been recently fixed. Please contact

Software FX Support for a HotFix.

> 2. Disabling the context menu by setting Chart.ContextMenus=false seems to

> have no effect. Still get a context menu (this does not happen if I use

> the .NET control).

This seems to be a bug, I will investigate. However, if you don't want the

chart to be interactive simply set:

chart.ImageSettings.Interactive = false;

This will disable context menus and toolbar.

Notice that built-in commands are enabled/disabled based on chart

properties. they can not be Enabled/Disabled manually as the setting will be

overridden by Chart properties. You can remove a sub-menu item or toolbar

item by using the Commands an ToolBar properties.

> 3. Attempts to set the Link.OnContextMenu property, which says if should

> be set to javascript that will execute on the client ...

This can only be done if the chart is NOT interactive, otherwise the link

settings are overridden by the standard context menu. So if you want to

display your own context menus you must set ImageSettings.Interactive=false.

> Incidently - there are still many places in the help that talk about image

> ...

I will forward this to our documentation team. What is the exact version you

are using ?

--

Francisco Padron

www.chartfx.com

"Fred P." <fred@thepandolfis.com> wrote in message

news:uqz0ct09FHA.468@webserver3.softwarefx.com...

> I'm generating a chart as an image with the latest version of ChartFX for

> VS 2005. I am having the following issues with regard to context menus:

>

> 1. When I right-click on the chart image, the ChartFX context menu appears

> but so does the browser's default context menu (usually right on top of

> the char menu).

> 2. Disabling the context menu by setting Chart.ContextMenus=false seems to

> have no effect. Still get a context menu (this does not happen if I use

> the .NET control).

> 3. Attempts to set the Link.OnContextMenu property, which says if should

> be set to javascript that will execute on the client, seem to have no

> effect. I set this property for every series in my chart, for example, but

> it doesn't execute when I click on a series. Interestingly, I do see a

> couple of entries in the image map which contain my javascript but each

> bar in the bar chart still has the default contextmenu javascript call

> associated with it in the image map.

>

> Incidently - there are still many places in the help that talk about image

> chart generation as a completely non-interactive thing even though you now

> have context menus, toolsbars, etc. Also, the very first note in the

> release note for this (now released) version of ChartFX says that you must

> have VS 2005 RC or older. Of course, that is no longer correct.

>

> Hope that all makes sense! Thanks for the help in advance.

>

> Fred P.

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...