User (Legacy) Posted June 22, 2006 Report Share Posted June 22, 2006 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 More sharing options...
Software FX Posted June 29, 2006 Report Share Posted June 29, 2006 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 More sharing options...
User (Legacy) Posted August 16, 2006 Author Report Share Posted August 16, 2006 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 More sharing options...
Software FX Posted August 18, 2006 Report Share Posted August 18, 2006 You need the HotFix in order to get your Custom Command working. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.