Hi everybody,
I have a problem when i try to bind a IsLoadingOnDemandEnabled property with boolean propery from business object in MVVM Pattern.
I tried this:
// for setting the property in the UserControl.Resources
<
Style
x:Key
=
"LoadingStyle"
TargetType
=
"telerik:RadTreeViewItem"
>
<
Setter
Property
=
"IsLoadOnDemandEnabled"
Value
=
"{Binding Path=BoolProp}"
/>
</
Style
>
Here "BoolProb" is my boolean property of business object
In The RadTreeView Tag, I did such:
<
telerik:RadTreeView
x:Name
=
"radTreeView"
Margin
=
"8"
IsLineEnabled
=
"True"
ItemContainerStyle
=
"{StaticResource LoadingStyle}"
IsDragDropEnabled
=
"True"
AllowDrop
=
"True"
IsDragTooltipEnabled
=
"True"
ItemTemplate
=
"{StaticResource EntityTemplate}"
ItemsSource
=
"{Binding Children}"
IsDragPreviewEnabled
=
"True"
IsExpandOnDblClickEnabled
=
"True"
IsExpandOnSingleClickEnabled
=
"False"
/>
My business objects I bound to the TreeView are in The list Named Children. Can U give me please any idea helping me to solve the binding problem ?
Thank U for your Help