This is a migrated thread and some comments may be shown as answers.
Suppressing Units
6 Answers 19 Views
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 14 May 2018, 07:55 PM

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

Sort by
0
Neli
Telerik team
answered on 16 May 2018, 02:23 PM
Hello Chris,

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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Chris
Top achievements
Rank 1
answered on 16 May 2018, 03:36 PM
Hi

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
0
Accepted
Neli
Telerik team
answered on 18 May 2018, 07:55 AM
Hello 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
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Chris
Top achievements
Rank 1
answered on 19 May 2018, 06:02 PM

Thanks - that does the trick 

Chris

0
Ryan
Top achievements
Rank 1
answered on 10 Mar 2020, 10:59 AM

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

0
Ivan Danchev
Telerik team
answered on 12 Mar 2020, 09:05 AM

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

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Gantt
Asked by
Chris
Top achievements
Rank 1
Answers by
Neli
Telerik team
Chris
Top achievements
Rank 1
Ryan
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or