GanttTask binding

12 posts, 1 answers
  1. Justin Lee
    Justin Lee avatar
    149 posts
    Member since:
    Dec 2009

    Posted 10 Apr 2012 Link to this post

    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
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Apr 2012 Link to this post

    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 >>

  3. DevCraft banner
  4. Justin Lee
    Justin Lee avatar
    149 posts
    Member since:
    Dec 2009

    Posted 11 Apr 2012 Link to this post

    Ok. Thanks for the info.
  5. Kholisa
    Kholisa avatar
    10 posts
    Member since:
    May 2012

    Posted 16 May 2012 Link to this post

    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
  6. Kholisa
    Kholisa avatar
    10 posts
    Member since:
    May 2012

    Posted 05 Jun 2012 Link to this post

    Hi
    Is there anyway where i can add my own property on xaml gantt view model and in gantt task object


    Thanks
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 05 Jun 2012 Link to this post

    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 >>

  8. Kholisa
    Kholisa avatar
    10 posts
    Member since:
    May 2012

    Posted 05 Jun 2012 Link to this post

    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 
  9. Kholisa
    Kholisa avatar
    10 posts
    Member since:
    May 2012

    Posted 05 Jun 2012 Link to this post

    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

  10. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 Jun 2012 Link to this post

    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 >>

  11. Paweł
    Paweł avatar
    11 posts
    Member since:
    Jun 2012

    Posted 10 Sep 2012 Link to this post

    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ł
  12. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 10 Sep 2012 Link to this post

    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.

  13. Paweł
    Paweł avatar
    11 posts
    Member since:
    Jun 2012

    Posted 10 Sep 2012 Link to this post

    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ł
Back to Top
DevCraft banner