problem of binding dynamically IsLoadingOnDemandEnabled property

3 posts, 0 answers
  1. alino
    alino avatar
    22 posts
    Member since:
    Sep 2010

    Posted 15 Sep 2010 Link to this post

    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}"/> 




     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











  2. Miro Miroslavov
    Miro Miroslavov avatar
    588 posts

    Posted 17 Sep 2010 Link to this post

    Hello alino,

     The reason this is not working is that Silverlight doesn't support "in Style bindings". This is annoying limitation, but we we have our own API to fix this. You should use our ContainerBindings. Read the full story.
    Hope this will help you.

    All the best,
    Miro Miroslavov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. alino
    alino avatar
    22 posts
    Member since:
    Sep 2010

    Posted 17 Sep 2010 Link to this post

    Hi Miroslavov,

    thank you so much for your precious Help, now my property binding is working.

    Best regards,

Back to Top