Fire button click server side

2 posts, 1 answers
  1. topry
    topry avatar
    32 posts
    Member since:
    Oct 2008

    Posted 19 Nov 2008 Link to this post

    Using 2008 Q3 release:
    During initialization, I set group button properties based upon user identification/other criteria and set button visible and checked properties. Data for these settings is read at server from a SQL table.

    Setting the RadToolBarButton.Checked property to True is not firing the _ButtonClick event.
    Should setting .Checked to True fire this event?

    If not what methodology do you recommend to fire this event?
    I tried simply invoking the default event handler, but was not able to find the correct object to pass for the EventArgs param for the .Checked button.

    What am I missing?
  2. Answer
    Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 20 Nov 2008 Link to this post

    Hello topry,

    This is by design. Setting properties will not fire server-side events. Those are triggered only after postback. I suggest you manually call your event handler or extract its method body in a separate method which accepts a toolbar item as an argument.

    I hope this helps,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top