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.
3 Answers, 1 is accepted
answered on 13 Nov 2015, 08:29 AM
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: