make radeditor invsibile

2 posts, 1 answers
  1. diane
    diane avatar
    23 posts
    Member since:
    Aug 2014

    Posted 13 Jul 2016 Link to this post

    In an existing 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?


  2. Answer
    Misho avatar
    160 posts

    Posted 14 Jul 2016 Link to this post


    You can make RadEditor invisible using its Visible property, while you can enable/disable it through the Enabled property:
    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">
                    <p>My test content</p>
                    <p>My test content</p>
            <asp:Button runat="server" OnClick="Toggle_Enable" Text="Toggle_EnableDisable"/>
            <asp:Button runat="server" OnClick="Toggle_Visibility" Text="Toggle_Visibility"/>
            <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

    Best Regards,
    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.
Back to Top