This is a migrated thread and some comments may be shown as answers.

Fire button click server side

1 Answer 94 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
topry
Top achievements
Rank 1
topry asked on 19 Nov 2008, 10:25 PM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 20 Nov 2008, 08:03 AM
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,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolBar
Asked by
topry
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or