divyesh29 Posted July 1, 2009 Report Share Posted July 1, 2009 hi I have created custom command and added it to toolbar. Now on click of the custom command I want to perform some action for that I am using UserCommand event.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Problem is that UserCommand event is not occurring. code in default.aspx < chartfx7:Chart ID="departmentExpenceChart" runat="server" Height="250px" Width="375px" UseCallbacksForEvents="True" OnUserCallback="departmentExpenceChart_UserCallback" OnUserCommand="departmentExpenceChart_UserCommand" RenderFormat=".NET"> <Series> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> </Series> <ToolBar Visible="True" /> </chartfx7:Chart> the departmentExpenceChart_UserCommand method is in default.aspx.cs protected void departmentExpenceChart_UserCommand(object sender, CommandUIEventArgs e) { if (e.CommandId == 23) { if (departmentExpenceChart.Series[0].Visible == true) {departmentExpenceChart.Series[0].Visible = false; } else{departmentExpenceChart.Series[0].Visible = true; } } } on page load event i have written departmentExpenceChart.UserCommand += new ChartFX.WebForms.CommandUIEventHandler(departmentExpenceChart_UserCommand);but still UserCommand event is not working...am i doing any thing wrong??? pls reply as soon as possible.. Thanks, Divyesh Mcube. Quote Link to comment Share on other sites More sharing options...
Frank Posted July 3, 2009 Report Share Posted July 3, 2009 Where is this UserCommand? In the toolbar? please post the code you are using to setup the UserCommand. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.