Exception Thrown when Expanding first level
ObservableCollection<TocItem> tocItems = new ObservableCollection<TocItem>();
for (int i = 1; i < 100;i++ )
{
TocItem tocItem = new TocItem();
tocItem.Name = "TOC " + i.ToString();
tocItems.Add(tocItem);
for (int j=0;j<10;j++)
{
TocItem subTocItem = new TocItem();
subTocItem.Name = "Sub Toc " +i.ToString()+" "+ j.ToString();
tocItem.ChildTocItems.Add(subTocItem);
}
}
treeNavigatorToc.ItemsSource = tocItems;
<Navigation:SfTreeNavigator Name="treeNavigatorToc" NavigationMode="Default" Width="300">
<Navigation:SfTreeNavigator.ItemTemplate>
<primitives:HierarchicalDataTemplate ItemsSource="{Binding ChildTocItems}">
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" VerticalAlignment="Center" Margin="18 0 0 0"/>
</StackPanel>
</DataTemplate>
<primitives:HierarchicalDataTemplate.ItemTemplate>
<primitives:HierarchicalDataTemplate ItemsSource="{Binding ChildTocItems}">
<DataTemplate>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Name}" VerticalAlignment="Center" Margin="18 0 0 0"/>
</StackPanel>
</DataTemplate>
<primitives:HierarchicalDataTemplate.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Name}" VerticalAlignment="Center" Margin="18 0 0 0"/>
</StackPanel>
</DataTemplate>
</primitives:HierarchicalDataTemplate.ItemTemplate>
</primitives:HierarchicalDataTemplate>
</primitives:HierarchicalDataTemplate.ItemTemplate>
</primitives:HierarchicalDataTemplate>
</Navigation:SfTreeNavigator.ItemTemplate>
</Navigation:SfTreeNavigator>
at Windows.UI.Xaml.Controls.ItemsControl.get_ItemTemplate()
at Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigator.NavigateItem(SfTreeNavigatorItem treeitem)
at Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigator.Select(Object item)
at Syncfusion.UI.Xaml.Controls.Navigation.SfTreeNavigator.OnSelectionChanged(DependencyPropertyChangedEventArgs args)
at Syncfusion.UI.Xa
Thank you for contacting Syncfusion support.
We have prepared sample by using your code snippets and we have checked the reported issue in this sample. But we are unable to reproduce the reported issue in this sample.
Please download the sample from the below link.
Sample link: SfTreeViewNavigatorSample
Please have a look at the sample and if the issue still exists, could you please try reproducing it in the above sample or send reproducible sample and the reproducing steps. so that we could sort out the cause of the issue and provide you the solution?
Regards,
Mariappan S.
Attachment: SfTreeViewNavigatorSample_860c26aa.zip
We have checked our last updated sample with the product version 13.3.0.12.But we are still unable to reproduce the reported issue at our end. We have also taken a video which demonstrates our replication steps
Please find the video from the below link
Video link:video
Could you please check the attached video and let us know whether we have followed correct issue reproducing steps or not? If not, kindly share us more information by providing issue reproducing steps. This would help us to proceed further on this
Please let us know if you need any other assistance
Regards,
M.Sugapriya
Attachment: record_31f105a1.zip
Currently we are preparing an environment which you mentioned in your last update. Could you please let us know whether you are facing the reported issue only in your machine or all other machines? Also please share us more information about the reported issue which would help us to reproduce from our side.
Regards,
M.Sugapriya
- 5 Replies
- 3 Participants
-
ST Stergios
- Nov 15, 2015 06:59 PM UTC
- Nov 19, 2015 11:46 AM UTC