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

RadEditor's version of SubmitClicked event

3 Answers 87 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Colm
Top achievements
Rank 1
Colm asked on 09 Feb 2011, 01:53 AM
Hi,

I had an old version of Telerik.WebControls.RadEditor that I just upgraded to Telerik.Web.UI.RadEditor. In the older version, one of the lines in the code behind .cs file is as follows:

this.RadEditor1.SubmitClicked += new EventHandler(RadEditor1_SubmitClicked);

After the upgraded to the new version, however, I get an error as follows:

'Telerik.Web.UI.RadEditor' does not contain a definition for 'SubmitClicked' and no extension method 'SubmitClicked' accepting a first argument of type 'Telerik.Web.UI.RadEditor' could be found (are you missing a using directive or an assembly reference?)

I do have a using Telerik.Web.UI; tag on top of my .cs file.

Can anyone please let me know what the corresponding code to use instead of the line above is in the new version of the Telerik controls?

Regards,
Paras Wadehra

 

3 Answers, 1 is accepted

Sort by
0
Rumen Jekov
Top achievements
Rank 1
answered on 09 Feb 2011, 10:42 PM
Hi,

The RadEditor for ASP.NET AJAX was intended to be as simple to configure as possible - and we decided to follow the familiar pattern of TextBox as this is in fact how the editor is used in almost all cases. The development paradigm is that the editor is  a part of a larger page that has some other means of making a postback or a callback - and the editor should not intefere in it. Thus, the Submit and Cancel buttons were removed.

You can easily implement a custom Save button in the editor (even simpler than usual, as there is  CSS in the editor that will style a tool called Save for you automatically). In case you wish to go this way and want to have a Save tool on the toolbar please see the following help article: http://www.telerik.com/help/aspnet-ajax/addingsaveandcancelbuttonstoolbar.html

Other than that, at present we do not intend to re-implement the Submit and Cancel buttons into the Ajax editor.
0
Tom
Top achievements
Rank 1
answered on 07 Jun 2011, 04:46 PM
>   at present we do not intend to re-implement the Submit and Cancel buttons into the Ajax editor.

WOW.  Could you please update the many pages in your documentation that talk about clicking "Update buttons" and using "OnSubmitClicked" and the like?

I just wasted a chunk of my morning furiously researching how to turn the Update button on.  

And the link you provided to the alternative technique (http://www.telerik.com/help/aspnet-ajax/addingsaveandcancelbuttonstoolbar.html)...is broken.

Thanks,
- Tom
0
Rumen
Telerik team
answered on 10 Jun 2011, 11:00 AM
Hello Tom,

Here is the correct link: http://www.telerik.com/help/aspnet-ajax/editor-adding-save-and-cancel-buttons-toolbar.html

The documentation of RadEditor for ASP.NET AJAX does not contain references to the OnSubmitClicked event of RadEditor Classic. It seems that you have found such references using Google which sometimes suggests links to the  documentation of RadEditor Classic.

Best wishes,
Rumen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Editor
Asked by
Colm
Top achievements
Rank 1
Answers by
Rumen Jekov
Top achievements
Rank 1
Tom
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or