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

Hide "Add task" button

3 Answers 205 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Aleksander
Top achievements
Rank 1
Aleksander asked on 19 Nov 2014, 02:47 PM
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.

3 Answers, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 21 Nov 2014, 07:44 AM
Hello,

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

Regards,
Aneliya Petkova
Telerik
0
Elhanid
Top achievements
Rank 1
answered on 04 Jan 2015, 01:57 PM
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,
0
Aneliya Petkova
Telerik team
answered on 05 Jan 2015, 09:12 AM
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
Tags
Gantt
Asked by
Aleksander
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
Elhanid
Top achievements
Rank 1
Share this question
or