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.
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.