RadEditor's version of SubmitClicked event

4 posts, 0 answers
  1. Colm
    Colm avatar
    4 posts
    Member since:
    Dec 2010

    Posted 08 Feb 2011 Link to this post


    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?

    Paras Wadehra


  2. Rumen Jekov
    Rumen Jekov avatar
    70 posts
    Member since:
    Apr 2004

    Posted 09 Feb 2011 Link to this post


    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.
  3. Tom
    Tom avatar
    2 posts
    Member since:
    Jun 2011

    Posted 07 Jun 2011 Link to this post

    >   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.

    - Tom
  4. Rumen
    Rumen avatar
    14351 posts

    Posted 10 Jun 2011 Link to this post

    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,
    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.

Back to Top