Truong Pham
Top achievements
Rank 1
Truong Pham
asked on 26 May 2010, 01:55 PM
I want to use WCF RIA services to populate RadTreeView via LoadonDemand. Is it the same as ADO.NET data services? My data is a self-reference table
Best Regards,
Truong Pham
Best Regards,
Truong Pham
9 Answers, 1 is accepted
0
Hi Truong Pham,
I attached a sample project illustrating how you can use RIA Services to populate the RadTreeView. In the example are used the Customer, Order and Order_Detail tables from the Northwind database as well as the IsVirtualizing and LoadOnDemand features of the RadTreeView.
Also, you can take a look at this blog on Self-reference hierarchy and RadTreeView.
I hope this information will help you.
Please let us know if we can further assist you.
All the best,
Tina Stancheva
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.
I attached a sample project illustrating how you can use RIA Services to populate the RadTreeView. In the example are used the Customer, Order and Order_Detail tables from the Northwind database as well as the IsVirtualizing and LoadOnDemand features of the RadTreeView.
Also, you can take a look at this blog on Self-reference hierarchy and RadTreeView.
I hope this information will help you.
Please let us know if we can further assist you.
All the best,
Tina Stancheva
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
Truong Pham
Top achievements
Rank 1
answered on 27 May 2010, 09:01 AM
Thanks for your information. But I just starting to use WCF RIA service so I do not know how to implement the data structure as in this blog on Self-reference hierarchy and RadTreeView . Please help me to do that. How can I send to you my whole solution?
0
Hi Truong Pham,
We will need more time to prepare an example for you. However I will get back to you tomorrow the latest.
Please accept my apology for the caused inconvenience.
Regards,
Tina Stancheva
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.
We will need more time to prepare an example for you. However I will get back to you tomorrow the latest.
Please accept my apology for the caused inconvenience.
Regards,
Tina Stancheva
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
Hello Truong,
I've prepared a sample project that actually does not need any hierarchical converter, since we are using WCF RIA Services. The most interesting part of the project is to create an self referencing association within the entity model.
Have a look at the attached project and let me know if you find something that needs further explanation. I'd be glad to further assist you.
All the best,
Kiril Stanoev
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.
I've prepared a sample project that actually does not need any hierarchical converter, since we are using WCF RIA Services. The most interesting part of the project is to create an self referencing association within the entity model.
Have a look at the attached project and let me know if you find something that needs further explanation. I'd be glad to further assist you.
All the best,
Kiril Stanoev
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
Truong Pham
Top achievements
Rank 1
answered on 06 Jun 2010, 06:16 AM
Dear Kiril,
Thanks for your support. I will try and inform you later.
Thanks for your support. I will try and inform you later.
0
Truong Pham
Top achievements
Rank 1
answered on 08 Jun 2010, 02:21 PM
Dear Kiril,
I have tried as your references project. But my entity does not generate the code to get/set the children.
I have tried as your references project. But my entity does not generate the code to get/set the children.
0
Hello Truong Pham,
I cannot be entirely sure where your problem lies without further explanation.
However, when you create a self referencing association within the entity model you have to generate the Database from the model in order to add the new properties to the database.
So if you aren't updating the database after modifying the model, perhaps that is causing the issue.
If not, please elaborate on your scenario and the steps you follow to implement it. Then we will be able to further assist you.
Kind regards,
Tina Stancheva
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.
I cannot be entirely sure where your problem lies without further explanation.
However, when you create a self referencing association within the entity model you have to generate the Database from the model in order to add the new properties to the database.
So if you aren't updating the database after modifying the model, perhaps that is causing the issue.
If not, please elaborate on your scenario and the steps you follow to implement it. Then we will be able to further assist you.
Kind regards,
Tina Stancheva
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
Truong Pham
Top achievements
Rank 1
answered on 23 Jun 2010, 05:27 AM
Dear Kiril,
I just have wonder the code snipset that provide access method to get the "children" and the "parent" is generated automatically or we have to add manually?
I just have wonder the code snipset that provide access method to get the "children" and the "parent" is generated automatically or we have to add manually?
0
Hello Truong Pham,
This code is generated automatically once you configure the entity model and update the database accordingly (Generate Database from Model).
Kind regards,
Tina Stancheva
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.
This code is generated automatically once you configure the entity model and update the database accordingly (Generate Database from Model).
Kind regards,
Tina Stancheva
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.