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

Client Templates with Gantt XML Provider

3 Answers 46 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
David Sanderson
Top achievements
Rank 1
David Sanderson asked on 12 Nov 2015, 02:57 PM

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

Sort by
0
Bozhidar
Telerik team
answered on 13 Nov 2015, 08:29 AM
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
0
David Sanderson
Top achievements
Rank 1
answered on 17 Nov 2015, 11:05 AM

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.

 

0
David Sanderson
Top achievements
Rank 1
answered on 17 Nov 2015, 11:06 AM

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.

 

Tags
Gantt
Asked by
David Sanderson
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
David Sanderson
Top achievements
Rank 1
Share this question
or