Edit default template

3 posts, 0 answers
  1. Sam
    Sam avatar
    60 posts
    Member since:
    Mar 2011

    Posted 21 Jul Link to this post

    Hi, I wanted to know if there was a way to edit the default template for the tasks.I have explored client templates but you lose the percent complete functionality when you do this and I'd like to keep that. Specifically visually seeing the percent complete highlight as well as adjusting the percent complete by moving the slider. If there was a way to add custom text to the default task, that would be perfect. 
  2. Ivan Danchev
    Ivan Danchev avatar
    788 posts

    Posted 26 Jul Link to this post

    Hello Sam,

    Apart from using ClientTemplates custom text can be added to the task title, for example in the TaskInsert event handler as shown in this article.
    Although not a recommended approach, HTML elements can be added to the Task's content div with jQuery for example:
    $telerik.$( ".rgtTaskContent" ).append( "<p>Test</p>" );

    Ivan Danchev
    Telerik by Progress
  3. DevCraft R3 2016 release webinar banner
  4. Sam
    Sam avatar
    60 posts
    Member since:
    Mar 2011

    Posted 26 Jul in reply to Ivan Danchev Link to this post

    Ivan, thanks for the post. Unfortunately the link you provided would change the actual title of the task. I only want to display additional information and not change the task itself. Also, it doesn't support adding html (another requirement I need). I did end up using Jquery to add custom text. I'm sure it will come back to bite me at some point since it feels more like a hack to get what I need in there but hopefully the HTML structure of the Gantt won't change anytime soon. Thanks. 
Back to Top