Client Templates with Gantt XML Provider

4 posts, 0 answers
  1. David Sanderson
    David Sanderson avatar
    4 posts
    Member since:
    Nov 2005

    Posted 12 Nov 2015 Link to this post

    Might it be possible to add a demo or provide example code for using Client Templates with the Gantt XML provider?

    I have looked at the documentation related to Custom Fields extensively but cannot relate how to use Custom Fields with the XML provider.

     

    With many thanks in anticipation.

     

     

     

  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 13 Nov 2015 Link to this post

    Hi,

    I want to clarify and make a distinction between the two features - ClientTemplates and CustomFields are separate features of the Gantt control, and each one can be used separately. They can of course be used together as well, as shown in our online demo. 

    In regards to your first question: "Might it be possible to add a demo or provide example code for using Client Templates with the Gantt XML provider?" - The approach here is straightforward - you simply bind the gantt to XML and assign a ClientTemplate. The only caveat here is that you can only use the default Task properties inside the template, since you don't have any CustomFields defined.

    The second questions is how to use CustomFields with the XML Provider. This cannot be achieved. If you want to use CustomFields, you will have to create a CustomProvider, following the steps from our online documentation:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/gantt/data-binding/providers/custom-entityframework-provider

    Regards,
    Bozhidar
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David Sanderson
    David Sanderson avatar
    4 posts
    Member since:
    Nov 2005

    Posted 17 Nov 2015 in reply to Bozhidar Link to this post

    Many thanks for your clarification.

    We wish to use both Client Templates and Custom Fields in due course and note that we need to move from the XML provider.

     

    Many thanks.

     

  5. David Sanderson
    David Sanderson avatar
    4 posts
    Member since:
    Nov 2005

    Posted 17 Nov 2015 in reply to Bozhidar Link to this post

    Many thanks for your clarification.

    We wish to use both Client Templates and Custom Fields in due course and note that we need to move from the XML provider.

     

    Many thanks.

     

Back to Top