Hi
Is it possible to configure or programmatically remove the Units Column from the assignments editor, as our requirement doesn't generally want to model %tage allocation to each user (effectively each user would be 100%)
Thanks
Chris
6 Answers, 1 is accepted
You could configure the displayed columns in Gantt by using the column configuration.
Here is a Dojo example where only a column for the Title is displayed.
Regards,
Neli
Progress Telerik

Thanks for your reply - I think your solution is just restricting columns on the main Gantt view, but doesn't solve the Units in the Assignment popup that shows one column for Resource, and second Column with units?
Regards
Chris
I have misunderstood the issue, please excuse me about that.
There is no build-in configuration for customizing the columns in the Gantt assignments editor. To achieve the desired appearance, I would suggest you to subscribe to the edit event of the widget. In the edit event handler you can get a reference of the 'Assign' button. Note, that you may need to use setTimeout function in order to ensure that the button is loaded by the time you are trying to get a reference. Once the button is clicked, you could get a reference of the Grid, that is in the assignments editor. Next, you can hide the column, by using Grid`s hideColumn method.
function
onEdit(e){
setTimeout(
function
(){
var
button = $(
'[data-container-for="resources"] .k-button'
)
$(button).click(
function
(){
setTimeout(
function
(){
var
resGrid = $(
'#resources-grid'
).data(
'kendoGrid'
);
resGrid.hideColumn(1);
}, 0);
})
},0)
}
Here is a Dojo example where the described approach is implemented.
Regards,
Neli
Progress Telerik

Thanks - that does the trick
Chris

Follow on question, is there a way to format or remove the '[100%]' allocation from the column display. Tried the format attribute of the column and the removing the unit value from the assignment data source without success. Here is the scenario where the
https://dojo.telerik.com/uBOqAWUj/5
Hello Ryan,
At present the way assigned resources are displayed is not configurable. We are considering the implementation of templates for the Gantt's columns, which would allow to customize the way data is displayed.
Regards,
Ivan Danchev
Progress Telerik