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
0
Hi Andrew,
You can remove the DomInspector module with the following lines placed in the codebehind:
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
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?
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
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
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