Load on demand using WCF RIA serices

10 posts, 0 answers
  1. Truong Pham
    Truong Pham avatar
    15 posts
    Member since:
    Aug 2009

    Posted 26 May 2010 Link to this post

    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
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 26 May 2010 Link to this post

    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.
  3. Truong Pham
    Truong Pham avatar
    15 posts
    Member since:
    Aug 2009

    Posted 27 May 2010 Link to this post

    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?
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 01 Jun 2010 Link to this post

    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.
  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 04 Jun 2010 Link to this post

    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.
  6. Truong Pham
    Truong Pham avatar
    15 posts
    Member since:
    Aug 2009

    Posted 06 Jun 2010 Link to this post

    Dear Kiril,

    Thanks for your support. I will try and inform you later.

  7. Truong Pham
    Truong Pham avatar
    15 posts
    Member since:
    Aug 2009

    Posted 08 Jun 2010 Link to this post

    Dear Kiril,

    I have tried as your references project. But my entity does not generate the code to get/set the children. 
  8. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 10 Jun 2010 Link to this post

    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.
  9. Truong Pham
    Truong Pham avatar
    15 posts
    Member since:
    Aug 2009

    Posted 23 Jun 2010 Link to this post

    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?

  10. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3299 posts

    Posted 25 Jun 2010 Link to this post

    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.
Back to Top