Hey,
Ive got a syncronized breadcrumb and treeview.
The only problem i got is the fact that a node in my treeview on a certain level (which is unknown) has IsLoadOnDemand enabled.
So my question is:
How do i update the current item in the breadcrumb to display its children, or even select those.
For more information about my setup:
I am using a webservice to retrieve a list of hierarchical data items. This result is currently attached to the treeview ItemsSource directly (which will may be moved to a more specific application context list, but doesnt matter here). On the same step the ItemsSource of the breadcrumb will be bound to the same list.
Every node in my tree has an attribute which determines if this node has children. This only indicates if the webservice can give me more information about the children even if the current node object doesn't have children. This is done to keep the loading time/data transport low.
Now if i navigate in the tree, the breadcrumb gets updated due to the current selection in the tree until i get to a node which has IsLoadOnDemand enabled. The node updates itself, but the breadcrumb will stay on the old "object" without childs. If i inspect the items directly, it has children. It looks like the RadBreadCrumbItem not does not update if its Item gets changed. (Little side note here: I have the INotifyPropertyChanged interface implemented on my node to notify if any attribute gets changed.)
Ive got a syncronized breadcrumb and treeview.
The only problem i got is the fact that a node in my treeview on a certain level (which is unknown) has IsLoadOnDemand enabled.
So my question is:
How do i update the current item in the breadcrumb to display its children, or even select those.
For more information about my setup:
I am using a webservice to retrieve a list of hierarchical data items. This result is currently attached to the treeview ItemsSource directly (which will may be moved to a more specific application context list, but doesnt matter here). On the same step the ItemsSource of the breadcrumb will be bound to the same list.
Every node in my tree has an attribute which determines if this node has children. This only indicates if the webservice can give me more information about the children even if the current node object doesn't have children. This is done to keep the loading time/data transport low.
Now if i navigate in the tree, the breadcrumb gets updated due to the current selection in the tree until i get to a node which has IsLoadOnDemand enabled. The node updates itself, but the breadcrumb will stay on the old "object" without childs. If i inspect the items directly, it has children. It looks like the RadBreadCrumbItem not does not update if its Item gets changed. (Little side note here: I have the INotifyPropertyChanged interface implemented on my node to notify if any attribute gets changed.)