This question is locked. New answers and comments are not allowed.
Hi,
I am building an app where the localisation can be changed on the fly, and in one area, have a RadTreeView with conditional Header text on the nodes, set via code-behind:
The issue comes when I change the localisation setting, in that all other components correctly reflect the localisation change (based on the same implementation of the ApplicationsStrings), however the tree node header text does not (if I change the localisation prior to the page loading, it works ok).
The xaml is in its simplest form:
I've tried looking through all the Forum threads, but cannot find anything along similar lines.
Any assistance would be gratefully received.
Thanks
I am building an app where the localisation can be changed on the fly, and in one area, have a RadTreeView with conditional Header text on the nodes, set via code-behind:
RadTreeViewItem childNode = new RadTreeViewItem();
childNode.Header = doShf == 7 ? ApplicationStrings.HolidayOB : ApplicationStrings.GeneralOB;
childNode.Header += accountsViewModel.OpeningBalance.ToString();
childNode.FontWeight = FontWeights.Normal;
treeNode.Items.Add(childNode);
The xaml is in its simplest form:
<
telerik:RadTreeView
x:Name
=
"radAccountsTree"
MaxHeight
=
"330"
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
>
<
telerik:RadTreeView.ItemTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Header}"
/>
</
DataTemplate
>
</
telerik:RadTreeView.ItemTemplate
>
</
telerik:RadTreeView
>
Any assistance would be gratefully received.
Thanks