October 22, 2018, 10:56:09 AM

See more Support incidents in our old archived forum.

Author Topic: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types  (Read 767 times)

vtunc

  • Customers
  • Newbie
  • *
  • Posts: 8
Hello,

I need to display follows nested data struck with FlexyGantt.
How does it work with hierarchal mixed types?


+Ordner
+Ordner
   -Person (Task)
   -Person (Task)
   +Ordner
      -Person (Task)
      -Person   (Task)   
-Person (Task, Task)
-Person (Task, Task, Task)
+Ordner
   -Person (Task, Task, Task)


All tasks for persons must be listed in own row  in scheduler.

Best regards

Martin

Rajagopal

  • RQ Members
  • Jr. Member
  • *
  • Posts: 99
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #1 on: August 07, 2018, 09:40:40 AM »
Hi Martin,

We are looking on this, will update you soon.


Thanks
Raja

ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 83
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #2 on: August 07, 2018, 02:51:23 PM »
Martin,

Can you confirm your email by sending us an email to our Support mailbox? Support(AT)RadiantQ.com?

The email we have on record for you is bouncing.

Thanks

Vandhana


ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 83
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #3 on: August 08, 2018, 05:07:44 PM »
Veysel,

So, does your Ordner objects have a property called "Children" or something like that, which contains the Ordner OR Person type objects?

Can you share with us some actual code that shows the type of these objects, just with the relevant properties? We will then put together a sample that shows how to bind this to our FlexyGantt.

(Also, have you already tried binding your datasource to our FG? You might want to set the ForceParentTemplateEvenIfChildless="false" setting to get it bound correctly (like we do in the ..Samples\FlexyGantt\DataBinding\FlexyGanttHierarchicalTasks sample).)

Thanks
Praveen


ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 83
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #4 on: August 09, 2018, 02:03:40 PM »
Veysel,

So, the FlexyGanttHierarchicalTasks sample referenced below could be very similar to your data - if both Ordner and Person are of same type or have a common base type/interface. If not, as mentioned earlier, please share a bit of the types' definition, we will then provide you a sample based on that.


Thanks
Praveen

vtunc

  • Customers
  • Newbie
  • *
  • Posts: 8
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #5 on: August 09, 2018, 03:00:39 PM »
Thanks for your answer,

I sent you an example per e-email

ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 83
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #6 on: August 09, 2018, 04:47:07 PM »
Veysel,

Did you send us an email to support (AT) radiantq.com? We haven't received any yet!

Thanks
Praveen

Rajagopal

  • RQ Members
  • Jr. Member
  • *
  • Posts: 99
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #7 on: August 13, 2018, 12:24:30 PM »
Veysel,

We have updated the reference sample and sent it to your email. Below are the changes,

Your HierarchicalDataTemplate should needs to be like this,
Code: [Select]
<HierarchicalDataTemplate x:Key="SubOrdnerTemplate"
                                ItemsSource="{Binding SubGroupList}">
    <TextBlock Text="{Binding Name}"></TextBlock>
</HierarchicalDataTemplate>

Note that, the "SubGroupList" is the property which holds the collection of child items in your data that needs to be bound in HierarchicalDataTemplate.

Thanks
Raja

vtunc

  • Customers
  • Newbie
  • *
  • Posts: 8
Re: FlexyGantt-TreeListView Databinding Hierarchal Data with mixed types
« Reply #8 on: August 13, 2018, 12:57:13 PM »
Hi Raja,

It seems working.

I'll try to adapt into my Project. If I have any issues, I'll keep you informed.

Thanks
Veysel