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

adding a custom button that causes a sever side event

1 Answer 83 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris Yoker
Top achievements
Rank 1
Chris Yoker asked on 12 Sep 2008, 10:04 AM
hiya,

We need to add a button (ideally beside the "Update" button), that will  cause a server side event.

I've seen the following example, which looks interesting, but isn't exactly what we need:
http://demos.telerik.com/aspnet/Editor/Examples/CustomTools/DefaultCS.aspx

We need to be able to grab btnClick event on the server.
I see that there's a "RadEditorCommandList" which looks useful.

Is there any way that we can use this (or similar) to grab the click event of the custom button that we've added?

many thanks,

yogi

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Sep 2008, 12:08 PM
Hi Chris,

You can use the solution provided for RadEditor 4.0 in this KB article: Adding the Save and Cancel buttons to RadEditor's toolbar. The idea is to have a hidden Asp:Button and programmatically click it via the "RadEditorCommandList" function of the custom editor button with the click() method. Thus you will be able to use the server event handler of the hidden Asp:Button.

All the best,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Chris Yoker
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or