This question is locked. New answers and comments are not allowed.
Hi,
I am trying to change the itemssource and then path for breadcrumb. If I change the Path right after changing temssource, it does not work. If I change the Path on an event then it works.
items source model:
Bread crumb def:
toolsbreadcrumb in button_click, but this has no effect.
I am trying to change the itemssource and then path for breadcrumb. If I change the Path right after changing temssource, it does not work. If I change the Path on an event then it works.
items source model:
public class BCSource
{
public string name { get; set; }
public ObservableCollection<BCSource> values { get; set; }
}
and source:
si1.name = "1"; si1.values = new ObservableCollection<BCSource>() { new BCSource() { name = "1.1", values=new ObservableCollection<BCSource>() { new BCSource() { name = "1.1.1", values=new ObservableCollection<BCSource>() }, new BCSource() { name = "1.1.2", values=new ObservableCollection<BCSource>() } } }, new BCSource() { name = "1.2", values=new ObservableCollection<BCSource>() { new BCSource() { name = "1.2.1", values=new ObservableCollection<BCSource>() }, new BCSource() { name = "1.2.2", values=new ObservableCollection<BCSource>() } } }, new BCSource() { name = "1.2", values=new ObservableCollection<BCSource>() { new BCSource() { name = "1.2.1", values=new ObservableCollection<BCSource>() }, new BCSource() { name = "1.2.2", values=new ObservableCollection<BCSource>() { new BCSource() { name = "1.2.2.1", values=new ObservableCollection<BCSource>() }, new BCSource() { name = "1.2.2.2", values=new ObservableCollection<BCSource>() } } } } }};<telerik:RadBreadcrumb x:Name="ToolsBreadCrumb" VerticalAlignment="Top" HeaderMemberPath="name" HierarchicalItemsSource="values" IsTextModeEnabled="False" HierarchicalMemberPath="name" TextModePath="name" IsLinearMode="False" IsTextSearchEnabled="False" PathSeparator=">" Margin="4,4,2,0" /> toolsbreadcrumb in button_click, but this has no effect.
private void Button_Click(object sender, RoutedEventArgs e)
{
ToolsBreadCrumb.Header = si1;
ToolsBreadCrumb.ItemsSource = si1.values;
ToolsBreadCrumb.Path =
"1>1.1";
}
I want to change the itemsource and then set the path in single event.
Any suggestion on this.
thanks