Jump to content
Software FX Community

UserCommand event is not working


divyesh29
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...