Suppressing Units

5 posts, 1 answers
  1. Chris
    Chris avatar
    27 posts
    Member since:
    Jul 2004

    Posted 14 May Link to this post

    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

  2. Neli
    Admin
    Neli avatar
    221 posts

    Posted 16 May Link to this post

    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.
  3. Chris
    Chris avatar
    27 posts
    Member since:
    Jul 2004

    Posted 16 May in reply to Neli Link to this post

    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
  4. Answer
    Neli
    Admin
    Neli avatar
    221 posts

    Posted 18 May Link to this post

    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.
  5. Chris
    Chris avatar
    27 posts
    Member since:
    Jul 2004

    Posted 19 May in reply to Neli Link to this post

    Thanks - that does the trick 

    Chris

Back to Top