I have a XamDataTree inside busyindicator. The XamDataTree with checkbox visibility is true, and it binds to a Hierarchical.
<ig:XamDataTree x:Name="pgaDataTree" NodeCheckedChanged="pgaDataTree_NodeCheckedChanged" > <ig:XamDataTree.CheckBoxSettings> <ig:CheckBoxSettings CheckBoxVisibility="Visible"
CheckBoxMode="Manual"
IsCheckBoxThreeState="False" /> </ig:XamDataTree.CheckBoxSettings> <ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout Key="ProblemLayout"
TargetTypeName="Problem"
DisplayMemberPath="Description"> <ig:NodeLayout.ExpandedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPProblemImage}" /> </DataTemplate> </ig:NodeLayout.ExpandedIconTemplate> <ig:NodeLayout.CollapsedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPProblemImage}" /> </DataTemplate> </ig:NodeLayout.CollapsedIconTemplate> </ig:NodeLayout> <ig:NodeLayout Key="GoalLayout"
TargetTypeName="Goal"
DisplayMemberPath="Description"> <ig:NodeLayout.ExpandedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPGoalImage}" /> </DataTemplate> </ig:NodeLayout.ExpandedIconTemplate> <ig:NodeLayout.CollapsedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPGoalImage}" /> </DataTemplate> </ig:NodeLayout.CollapsedIconTemplate> </ig:NodeLayout> <ig:NodeLayout Key="ApproachLayout"
TargetTypeName="Approach"
DisplayMemberPath="Description"> <ig:NodeLayout.ExpandedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPApproachImage}" /> </DataTemplate> </ig:NodeLayout.ExpandedIconTemplate> <ig:NodeLayout.CollapsedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPApproachImage}" /> </DataTemplate> </ig:NodeLayout.CollapsedIconTemplate> </ig:NodeLayout> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree>
Here all the binding steps
1. Show busyindicator
2. Call RIA service get all item soure
3.Bind ItemSource to xamtree
4.Hide busyindicator
The first binding is OK. Then if the user user click a button to trigger rebind the XamDataTree with updated datasoure. The second binding, all the Nodes are disable (can not expand or select any node) Eventhough i try to enable all the nodes using below function it does not work
private void EnableTreeNodes(bool enable, XamDataTreeNodesCollection nodes) { foreach (XamDataTreeNode node in nodes) { node.IsEnabled = enable; if (node.HasChildren) EnableTreeNodes(enable, node.Nodes); } }
If XamDataTree is not inside the busyindicator, everything works fine.
Please hep
Hi Friday1234,
Is it possible to supply me with a simple example, where the issue is reproducible/visible, because I can't reproduce it.
Regards,
Tania
The problem is like this http://community.infragistics.com/forums/p/44589/244820.aspx#244820.
My Infragistics Component Version is 10.3.20103.2117 and I have the same problem with ChildWindows and busyindicator
I did change mu codes to work around the issue. Therefore I do not have my old codes. But you can use this xam
<ig:XamDialogWindow x:Name="dlAddGoal" Header="Add Goal(s) and Approach(es)" WindowState="Hidden" IsModal="True" StartupPosition="Center" HeaderIconVisibility="Collapsed" MinimizeButtonVisibility="Collapsed" Width="850" IsResizable="True"> <controlsToolkit:BusyIndicator x:Name="aprBusy" BusyContent="Loading..." > <StackPanel MinHeight="500"> <ig:XamDataTree x:Name="gaDataTree" NodeCheckedChanged="gaDataTree_NodeCheckedChanged" BorderThickness="0" IsEnabled="True" Background="#ECEAE1"> <ig:XamDataTree.CheckBoxSettings> <ig:CheckBoxSettings CheckBoxVisibility="Visible" CheckBoxMode="Manual" IsCheckBoxThreeState="False" /> </ig:XamDataTree.CheckBoxSettings> <ig:XamDataTree.GlobalNodeLayouts> <ig:NodeLayout Key="GoalLayout" TargetTypeName="CarePlan_ClientGoal" DisplayMemberPath="Description"> <ig:NodeLayout.ExpandedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPGoalImage}" /> </DataTemplate> </ig:NodeLayout.ExpandedIconTemplate> <ig:NodeLayout.CollapsedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPGoalImage}" /> </DataTemplate> </ig:NodeLayout.CollapsedIconTemplate> </ig:NodeLayout> <ig:NodeLayout Key="ApproachLayout" TargetTypeName="CarePlan_ClientApproach" DisplayMemberPath="Description"> <ig:NodeLayout.ExpandedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPApproachImage}" /> </DataTemplate> </ig:NodeLayout.ExpandedIconTemplate> <ig:NodeLayout.CollapsedIconTemplate> <DataTemplate> <Image Style="{StaticResource CPApproachImage}" /> </DataTemplate> </ig:NodeLayout.CollapsedIconTemplate> </ig:NodeLayout> </ig:XamDataTree.GlobalNodeLayouts> </ig:XamDataTree> </StackPanel> </controlsToolkit:BusyIndicator> </ig:XamDialogWindow>
on button click event
1. Show XamDialogWindow
2. Show busyindicator
3. Bind XamDataTree item source
Then close the XamDialogWindow. Do some thing to change the itemsoure then trigger the button click again.
Thanks