Jump to content
Software FX Community

Custom Toolbar Item Problem


User (Legacy)

Recommended Posts

I'm trying to add a custom toolbar item that will be a dropdown list. The 

icon for the item displays when the chart first appears, but when I hover

over it the button changes to a red X because it somehow loses the icon.

Also, click on an item in the dropdown list yieds, "Value cannot be null.

Parameter name: image." The icon for the item in the dropdown list also displays

with a red X.

On both commands I'm adding the image like so:

myDropdown.ImageIndex = chart.Commands.AppendImage(System.Drawing.Image.FromFile(MapPath("./Images/MyImage.gif")))

Thanks,

Terry

Link to comment
Share on other sites

Thank you for your feedback. We have found and fixed this problem. Please 

contact Software FX Support for a HotFix or wait for the next Service Pack.

You will need to create a folder in your application named "UserCommands"

and a png file for each user commands. For example, if you add a User

Command with ID = 100, you add a file "100.png" in the UserCommands folder.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

  • 1 month later...

Is it possible to just render a text button in the toolbar? Running the latest 

hotfix causes an AJAX problem that I don´t want to dig into right now, so

after your prior response I ended up backing out that hotfix.

I´m using the following code which looks like it would produce a text toolbar

item, but instead, I´m just getting an empty folder icon. The empty folder

icon also turns to the "red X" when you hover over it just like in the bug

in my initial post.

Dim command As New ChartFX.WebForms.Command(1000)

command.Script = "alert(´Clicky clicky!´);"

command.GeneratePostBack = False

command.Text = "Chart Options"

command.Style = ChartFX.WebForms.CommandStyles.ShowTextOnly

chart.Commands.Add(command)

chart.ToolBar.Insert(chart.ToolBar.Length, New ChartFX.WebForms.ToolBarItem(1000))

Thanks,

Terry

> Thank you for your feedback. We have found and fixed this problem.

> Please contact Software FX Support for a HotFix or wait for the next

> Service Pack.

>

> You will need to create a folder in your application named

> "UserCommands" and a png file for each user commands. For example, if

> you add a User Command with ID = 100, you add a file "100.png" in the

> UserCommands folder.

>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...