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

GanttTask binding

11 Answers 189 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 10 Apr 2012, 08:58 PM
I'm setting up a RadGanttView.  In all the demos, the ganttview is bound to a list of GanttTasks -- a class found in the telerik assemblies.

Is it possible to bind a RadGanttView to a list of other items?  (a custom class that exposes certain properties/methods)

The reason I ask is because we have 6 silverlight apps and use mvvm.  We currently have 1 assembly that stores the view models.  To expose a collection of GanttTasks, we would have to reference Telerik assemblies in the view model assembly, increasing the size of the xaps in all projects even if they don't use a GanttView.  It also kinda breaks mvvm in that the view model is required to know that the View needs the GanttTask class.  (the view model should not be dependant on Telerik)

Its not a big issue, because I can create a separate assembly for the view models needed for the gantt, or even put them in the silverlight project.  I was just wondering if it is possible to get by without using the GanttTask class.

Thanks,
Justin

11 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 11 Apr 2012, 08:34 AM
Hi Justin,

Currently you can use your own objects which need to implement the IGanttTask interface which is also in the GanttView assembly. We are planning to add data mapping feature which will allow you to use arbitrary objects and just to specify property mappings for the properties we need like Title, Start, End, etc.

This feature is planned for the 2012 Q2 SP1 release so it should be developed shortly after the Q2 release at the middle of June. Hope this time frame is OK for you.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Justin Lee
Top achievements
Rank 1
answered on 11 Apr 2012, 01:54 PM
Ok. Thanks for the info.
0
Kholisa
Top achievements
Rank 1
answered on 16 May 2012, 12:33 PM
Hi there

i am trying to using that tutorial you uploaded by im getting an error saying GanttviewDBEntities assembly is missing. do you have any idea what i can do to solve this problem
thanks
0
Kholisa
Top achievements
Rank 1
answered on 05 Jun 2012, 07:37 AM
Hi
Is there anyway where i can add my own property on xaml gantt view model and in gantt task object


Thanks
0
Miroslav Nedyalkov
Telerik team
answered on 05 Jun 2012, 08:40 AM
Hi Kholisa,

I'm not sure I fully understand what you need to do, but to add custom properties to the GanttTasks you just need to inherit from them.

Hope this helps.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kholisa
Top achievements
Rank 1
answered on 05 Jun 2012, 01:17 PM
Hi

I got new Column called a Define, but now to display value in a cell i need to bind to Title,what other property i can use to bind this in xaml 
0
Kholisa
Top achievements
Rank 1
answered on 05 Jun 2012, 02:35 PM
Hi Miroslav
GanttTask contain three elements 
which are
startdate,endDate and Title and xaml got this properties UniqueID,Title,Start,End,Duration,Progress,IsMilestone and description

i have create a column but now the value that i enter in that column doesnt diplay until i bind it to this xaml properties
1. what are other xaml properties that i can use except those i just mention
2.is there any way i can make GanttTask have more that 3 elements

0
Miroslav Nedyalkov
Telerik team
answered on 06 Jun 2012, 03:34 PM
Hi Kholisa,

Please refer to the attached project demonstrating the idea I suggested to you.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Paweł
Top achievements
Rank 1
answered on 10 Sep 2012, 10:20 AM
Hi

Miroslav, you mentioned that Q2 release will contain mapping feature.
I checked release notes of Q2 and found no information about such a feature.
Could you tell whether mapping is implemented in Q2 version?
Regards
Paweł
0
Miroslav Nedyalkov
Telerik team
answered on 10 Sep 2012, 11:05 AM
Hello Pawel,

We decided to postpone this feature as there are some more important features we have to work on for the GanttView control. Most probably the feature will not be ready even for the 2012 Q3 release.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Paweł
Top achievements
Rank 1
answered on 10 Sep 2012, 11:18 AM
Hello again, Miroslav

I noticed that you posted solution that shows example of inheritance from GanttTask class.
Could you post similar solution that shows how to prepare completely custom object that implements IGanttTask? 
There is no such example on this page (or maybe there is?), and I receive persistent error while trying to implement this interface (KeyNotFoundException)
Thank you in advance
Paweł
Tags
GanttView
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Justin Lee
Top achievements
Rank 1
Kholisa
Top achievements
Rank 1
Paweł
Top achievements
Rank 1
Share this question
or