Load On Demand - ExpandAll

12 posts, 0 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 16 Jan 2010 Link to this post

    Hi..
    I'm using LoadOnDemand...  I turn it off after my data is loaded...but as soon as Expand the Nodes .... I get the animation on my children.

    what am I doing wrong... thanks again


    ...data loaded...

     

    this.InBox_Header.IsLoadingOnDemand = false;

     

     

     this.InBox_Header.ExpandAll();

     


  2. Tihomir Petkov
    Admin
    Tihomir Petkov avatar
    576 posts

    Posted 21 Jan 2010 Link to this post

    Hi Jon,

    Excuse me for the delayed answer. The most probable reason why you get the loading animation on the child nodes is because you have set the IsLoadOnDemandEnabled property of the entire TreeView control to "true". This way the property is inherited by all items in the control and even though you disable the animation on the root item, its children still have their IsLoadOnDemandEnabled property set to "true".

    You may find the help article and load on demand exmaple below useful:
    http://www.telerik.com/help/silverlight/radtreeview-features-load-on-demand.html
    http://demos.telerik.com/silverlight/#TreeView/LoadOnDemand

    Let me know if the above info does not help and you need further assisstance with this issue.

    Sincerely yours,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Pedro
    Pedro avatar
    25 posts
    Member since:
    Aug 2010

    Posted 07 Oct 2010 Link to this post

    Hi, I having the problem rather.
    I have TreeView loading on demand but I can't see the expander animation. Why is not runing the animation?

    This is my xaml:

    <Grid x:Name="LayoutRoot" Background="White">
            <telerik:RadTreeView Height="200" HorizontalAlignment="Left" Margin="12,12,0,0" Name="treeView1" VerticalAlignment="Top" Width="120" IsVirtualizing="True">
                <telerik:RadTreeViewItem Name="treeViewItem" Header="Teste" IsLoadOnDemandEnabled="True" LoadOnDemand="treeViewItem_LoadOnDemand"/>
            </telerik:RadTreeView>
            <Button Content="Populate Tree" Height="23" HorizontalAlignment="Left" Margin="203,38,0,0" Name="button1" VerticalAlignment="Top" Width="107" Click="button1_Click" />
             
        </Grid>
            

    Best regards,
    Gonçalo


     
  5. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 08 Oct 2010 Link to this post

    Hi Gonçalo,

    Can you please provide us with more information on the issue you are having? The RadTreeViewItems's expand animation is showing up every time when I tested this on my end. Is it possible to provide us with a sample project that we could run and experience the issue ourselved?

    Greetings,
    Alex Fidanov
    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
  6. Pedro
    Pedro avatar
    25 posts
    Member since:
    Aug 2010

    Posted 08 Oct 2010 Link to this post

    Hi,

    I tried to attach my visual studio project (zip file) but it gives me error: "File is not of correct type. Try again" 

    My file is less than 2MB. 

    Is possible to attach zip files?

    regards,
    Gonçalo
  7. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 11 Oct 2010 Link to this post

    Hello Gonçalo,

    In the forums, only image files are allowed to be attached. You could craete a support ticket and upload the sample in the ticket and we will look into it with higher priority, or you could upload the project on a temporary internet storage and provide us with a link to it.

    Regards,
    Alex Fidanov
    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
  8. Pedro
    Pedro avatar
    25 posts
    Member since:
    Aug 2010

    Posted 11 Oct 2010 Link to this post

    Hi,


    I already solved the problem. I was populating the treeView manually and now I am using DataBinding. Using DataBinding it works very much better. :)

    But now I having another problem: How can I unchek item using ContainerBinding?

    <telerik:ContainerBindingCollection x:Key="BindingsCollection">
                <telerik:ContainerBinding PropertyName="CheckState" Binding="{Binding CheckState, Mode=TwoWay}" />
            </telerik:ContainerBindingCollection>
      
    <telerik:HierarchicalDataTemplate x:Key="FirstGroupTemplate" ItemTemplate="{StaticResource VesselsTemplate}" ItemsSource="{Binding Vessels}" telerik:ContainerBinding.ContainerBindings="{StaticResource BindingsCollection}">
                <TextBlock Text="{Binding Name}" />
            </telerik:HierarchicalDataTemplate>

    Am I doing it right? If I change the CheckState in my data object it will be updated in treeView? I need to refresh?

    Regards,
    Gonçalo

  9. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 13 Oct 2010 Link to this post

    Hello Gonçalo,

    Assuming that you have a CheckState property on your business object and the class implements INotifyPropertyChanged interface, when the value of that property changes, it will propagate the changes to the RadTreeViewItem and its check state will change accordingly.

    Greetings,
    Alex Fidanov
    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
  10. Pedro
    Pedro avatar
    25 posts
    Member since:
    Aug 2010

    Posted 13 Oct 2010 Link to this post

    I have that implemented. I'm using virtualization, maybe is that the problem. Because if I collapse and expand the node the chekbox update the state.

    regards,
    Gonçalo
  11. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 15 Oct 2010 Link to this post

    Hello Gonçalo,

    I am attaching a project demonstrating a binding between the CheckState of the business object and the CheckState property of the RadTreeViewItem. You can see in the example that both changes to the CheckState property through the UI or through the button's click are reflected accordingly by the RadTreeView. Let me know if you have questions on the sample.

    All the best,
    Alex Fidanov
    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
  12. Pedro
    Pedro avatar
    25 posts
    Member since:
    Aug 2010

    Posted 15 Oct 2010 Link to this post

    Hi,

    You have the same problem that I had. If you uncheck the item 1 in collpased mode. The childs (item 1.1, item 1.2 item 1.3) remains in check state. Can you test there?

    regards,
    Gonçalo
  13. Alex Fidanov
    Admin
    Alex Fidanov avatar
    636 posts

    Posted 15 Oct 2010 Link to this post

    Hello Gonçalo,

    I see this behavior now. This is caused by the use of ContainerBinding. This is a known issue for us and we are wokring on resolving it. You can check its progress from here.

    Regards,
    Alex Fidanov
    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
Back to Top
DevCraft banner