Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
761
XamPivotDataSelector, XamDataTree Binding Error on Expansion Indicator
posted

Normal 0 21 false false false DE-CH X-NONE X-NONE

Hello

I am using the latest WPF controls with version 12.1.20121.2002. The controls involved are the XamPivotGrid with the XamPivotDataSelector which makes use of the XamDataTree.

Both, the grid and the data selector are connected to the same XmlaDataSource. Everything works fine, Measures, Dimensions etc. can be selected and dragged and dropped to grid.

The data selector, however, shows its expansion indicator even if the associated node does not have children. Clicking the expansion indicator in such a scenario does not break anything, but during population of the data selector the following binding error is generated, for every node which does not have children:

System.Windows.Data Error: 40 : BindingExpression path error: 'HasChildren' property not found on 'object' ''HierarchicalItem' (HashCode=30884115)'. BindingExpression:Path=Node.Data.HasChildren; DataItem='XamDataTreeNodeControl' (Name=''); target element is 'ExpansionIndicator' (Name='ExpansionIndicator'); target property is 'Visibility' (type 'Visibility')

I would like to hide the expansion indicator if no child nodes are available, and as such , also get rid of the binding error.  Is there a way I can modify a template? Any thoughts are welcomed, thanks a lot!

Frank

Parents Reply Children