All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
I don't want users to set UNITS while assigning tasks to resources, either I want to disable that column or hide the column. The default value should always be 100%.
Hello, Abhishek,
In the Gantt edit event, you can get a reference to the inner TabStrip component and bind to its select event. You can then get a reference to the Grid if the user clicks on the Resources tab, and call the Grid hideColumn method:
edit:function(e){ var tabstrip = $(e.container).find($('[data-role="tabstrip"]')).data("kendoTabStrip"); tabstrip.bind("select", function(e){ var item = e.item; if($(item).find(".k-link").text() === "Resources"){ var grid = $(e.contentElement).find($('[data-role="grid"]')).data("kendoGrid"); grid.hideColumn("value"); } }) },
Here you will find a small Dojo example demonstrating the approach.
Let me know if that works for you.
Regards, Martin Progress Telerik