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

Gantt task delete action button is not clickable if progress at 100% when bootstrap 4 theme is used

1 Answer 75 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Dan asked on 17 Mar 2020, 09:58 AM

We are using Gantt in our project, the added tasks are using a template and we noticed that when the task progress covers the delete task button and it is not clickable anymore.

The template is similar to the one below:

<script id="task-template" type="text/x-kendo-template"
    <div class="template">
        <div class="wrapper">
            <strong class="title">#= title # </strong>
            <span class="resource">no resource assigned</span>
        </div>
        <div class="progress" style="width:#= (100 * parseFloat(percentComplete)) #%"> </div>
    </div>
</script>

 

 

I have tried to reproduce this issue in the Kendo Dojo and noticed that it is reproducible only when bootstrap 4 is used (for bootstrap 3 works fine). Here is the link to the kendo dojo where I was able to reproduce this issue: https://dojo.telerik.com/eyutamel 

Please help me get the functionality for the delete (k-task-delete) on the task.

Thank you in advance!

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 18 Mar 2020, 04:44 PM

Hello Dan,

Thank you for sending a sample dojo with the issue isolated. I noticed the dojo follows the example on Gantt Task Templates, with one styling difference:

.progress{
   position: absolute;
   left: 0;
   bottom: 0;
   width: 0%;
   height: 4px;
   background: rgba(0, 0, 0, .3);
 }

In the dojo provided the height is set to 100% thus the progress element covers the close icon when the task is 100% completed. You could either set a height for .progress class so that it is lower than the close icon or adjust the z-index of the close icon:

.k-link.k-task-delete{
      z-index:1;
    }

Here is a dojo that demonstrates the above approach.

Let me know if you have further questions.

Regards,
Aleksandar
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
Gantt
Asked by
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Aleksandar
Telerik team
Share this question
or