make radeditor invsibile

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

    Posted 13 Jul Link to this post

    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?

     

  2. Answer
    Misho
    Admin
    Misho avatar
    129 posts

    Posted 14 Jul Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top