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

make radeditor invsibile

1 Answer 43 Views
Editor
This is a migrated thread and some comments may be shown as answers.
diane
Top achievements
Rank 1
diane asked on 13 Jul 2016, 09:08 PM

In an existing vb.net 2010 web form that uses the radeditor, I want to know if I can make the radeditor invisibile and/or not usable for awhile when a particular webform page is displayed. I am asking that question since I want a user to work with a gridview control during the time the radeditor is not visible. I want to do this so I do not need to setup a new web form page just for the gridview control.

Thus can you tell me and/or show me how to make the radeditor invisible and most likely not usable at the same time. Also would you also then tell me how to make the radeditor visible and useable when I want to? There must be some properties that need to be set?

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Misho
Telerik team
answered on 14 Jul 2016, 07:42 AM
Hi,

You can make RadEditor invisible using its Visible property, while you can enable/disable it through the Enabled property: http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/server-side-programming/overview
Here is a video showing the behavior of both and a sample showing the configuration:

<form id="form1" runat="server">
        <asp:ScriptManager runat="server"></asp:ScriptManager>
        <telerik:RadEditor runat="server" Id="Editor1">
            <Content>
                <p>My test content</p>
                <p>My test content</p>
            </Content>
        </telerik:RadEditor>
        <asp:Button runat="server" OnClick="Toggle_Enable" Text="Toggle_EnableDisable"/>
        <asp:Button runat="server" OnClick="Toggle_Visibility" Text="Toggle_Visibility"/>
 
    <div>
        <script runat="server">
            Protected Sub Toggle_Enable(sender As Object, e As EventArgs)
                Editor1.Enabled = Not Editor1.Enabled
            End Sub
 
            Protected Sub Toggle_Visibility(sender As Object, e As EventArgs)
                Editor1.Visible = Not Editor1.Visible
            End Sub
 
        </script>
     
    </div>
    </form>


Best Regards,
Misho
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Editor
Asked by
diane
Top achievements
Rank 1
Answers by
Misho
Telerik team
Share this question
or