Hide "Add task" button

4 posts, 0 answers
  1. Aleksander
    Aleksander avatar
    17 posts
    Member since:
    Mar 2014

    Posted 19 Nov 2014 Link to this post

    Is there any way of hiding this button?

    I tried to hack my way around by adding a css override but it seems client-side binding brings it back out.
  2. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 21 Nov 2014 Link to this post

    Hello,

    You can hide the "Add Task" button using the following CSS:
    html .RadGantt .rgtActions .radButton {
        display: none;
    }

    Regards,
    Aneliya Petkova
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Elhanid
    Elhanid avatar
    5 posts
    Member since:
    Dec 2014

    Posted 04 Jan 2015 in reply to Aneliya Petkova Link to this post

    Can you tell me how I can implement this solution ? If I have to add it into a css file or some where else .. ?

    Thank you to giving me a short example ..

    Regards,
  5. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 05 Jan 2015 Link to this post

    Hello Elhanid,

    You can use an Internal or External Style Sheet. Please check the following page for more information:
    http://www.w3schools.com/css/css_howto.asp

    Here is an example using Internal Style Sheet:
    <head runat="server">
        <title></title>
        <style type="text/css">
            html .RadGantt .rgtActions .radButton {
                display: none;
            }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
                <telerik:RadGantt ID="RadGantt1" runat="server" Width="1260" YearView-UserSelectable="true" YearView-SlotWidth="300">
                </telerik:RadGantt>
            </div>
        </form>
    </body>


    Regards,
    Aneliya Petkova
    Telerik
Back to Top