Set modules in code-behind

2 posts, 1 answers
  1. CharlesM
    CharlesM avatar
    14 posts
    Member since:
    Jun 2007

    Posted 24 Mar 2009 Link to this post

    Is it possible to show/hide the RadEditorStatistics, RadEditorXhtmlValidator modules from code-behind? I am dynamically adding the editor buttons in the code-behind, but have not found a way to do this with the modules. I tried to add them dynamically, but the constructor requires a script parameter, and I am not sure what script to use.

  2. Answer
    Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 26 Mar 2009 Link to this post

    Hi CharlesM,

    You can add modules via the codebehind with the following code:

    using Telerik.Web.UI;
    ...
    EditorModule htmlInspector
    = new EditorModule();
    htmlInspector.Name = "RadEditorHtmlInspector";
    htmlInspector.Visible = true;
    RadEditor1.Modules.Add(htmlInspector);

    Here are the names of the built-in modules of RadEditor:

    RadEditorStatistics
    RadEditorDomInspector
    RadEditorNodeInspector
    RadEditorHtmlInspector


    Sincerely,
    Rumen
    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