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

[Solved] Dont display remove element and element list

3 Answers 104 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Andrew Costello
Top achievements
Rank 1
Andrew Costello asked on 08 Jan 2008, 12:19 AM
I can not find anywhere how to not display the remove element and element list. My users are very non-technical and it confuses them.

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 09 Jan 2008, 10:01 AM
Hi Andrew,

You can remove the DomInspector module with the following lines placed in the codebehind:
protected void Page_Load(object sender, EventArgs e)  
    {  
        RadEditor1.Modules.RemoveAt(1);//Remove the RadEditor's NodeInspector  
          
    } 

For your convenience I attached a video.

Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andrew Costello
Top achievements
Rank 1
answered on 19 Feb 2008, 06:57 AM
I had to use this as follows:
        if (!IsPostBack)
        {
            editor.Modules.RemoveAt(1);
        }

But now that I have that gone, I would like my editor to look very similar to the one in the forum. But I have about a half inch block on the bottom of my editor that takes up a lot of unnecessary space. How can I remove that?
0
George
Telerik team
answered on 19 Feb 2008, 09:08 AM
Hi Andrew,

I believe, that you are talking about the "Node Inspector". You can achieve the desired functionality with the following code:

protected void Page_Load(object sender, EventArgs e) 
        {
            RadEditor1.Modules.RemoveAt(1);
//Remove the RadEditorDomInspector
            RadEditor1.Modules.RemoveAt(1);
//Remove the RadEditorNodeInspector
        }

Note that, when you remove a module from the modules array the array's length is automatically decremented by 1. This is why, after removing the DOM Inspector module, I am removing again the "1" index of the modules array to remove the Node Inspector - the Node Inspector's index is changed from 2 to 1.

I hope this helps.

Best regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Andrew Costello
Top achievements
Rank 1
Answers by
George
Telerik team
Andrew Costello
Top achievements
Rank 1
Share this question
or