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...
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();
11 Answers, 1 is accepted
0
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.
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.
0
Pedro
Top achievements
Rank 1
answered on 07 Oct 2010, 05:38 PM
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:
Best regards,
Gonçalo
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
0
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
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
0
Pedro
Top achievements
Rank 1
answered on 08 Oct 2010, 01:50 PM
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
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
0
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
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
0
Pedro
Top achievements
Rank 1
answered on 11 Oct 2010, 12:15 PM
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?
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
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
0
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
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
0
Pedro
Top achievements
Rank 1
answered on 13 Oct 2010, 02:50 PM
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
regards,
Gonçalo
0
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
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
0
Pedro
Top achievements
Rank 1
answered on 15 Oct 2010, 11:48 AM
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
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
0
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
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