in

Software FX Community

Discuss and find help for all Software FX products.

UserCommand event is not working

Last post 07-03-2009 3:58 PM by Frank. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-01-2009 12:47 PM

    UserCommand event is not working

    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.

  • 07-03-2009 3:58 PM In reply to

    • Frank
    • Top 10 Contributor
    • Joined on 11-30-2006
    • USA

    Re: UserCommand event is not working

    Where is this UserCommand? In the toolbar? please post the code you are using to setup the UserCommand.

    Francisco Padron
    www.chartfx.com
Page 1 of 1 (2 items)
Copyright 2008 Software FX, Inc.