GridView + DataPager + WCF Issue

4 posts, 0 answers
  1. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 27 Sep 2011 Link to this post

    Hello.

    I have a GridView with a DataPager, the grid itemsource is a list that comes from my WCF service. Untill now everything is working just fine, but now, the data base is getting bigger and the GridView is taking long time to show the results.


    I think on a solution but I don't know how to implement, is there a way to make the RadDataPager get all the number of pages from my database, and JUST when the user click on a page number or click on next button of the DataPager i call the service and gets this records?

    My question is the same of this post, but i check the answers and there's nothing that help me.
    http://www.telerik.com/community/forums/silverlight/gridview/radgridview-and-raddatapager-with-a-lot-of-data.aspx

    Thanks.
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 28 Sep 2011 Link to this post

    Hi Joao Paulo Grassi,

    I believe that our new control can help you in this case. There is a sample project attached to my blog post that demonstrates how to use it.

    Here you can find its online documentation.

    Here you can see its online examples.

    I hope this helps.

    Kind regards,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Joao Paulo Grassi
    Joao Paulo Grassi avatar
    98 posts
    Member since:
    Feb 2011

    Posted 28 Sep 2011 Link to this post

    Hi Ross,
    Thank you for your help, but i still have questions
    In my application we use the MVVM pattern, also we use Linq to SQL.

    In all examples that i see, you use the services and the model in the Web Project, but how i use this control in a project that have multiple projects like:

    DataAcess -> My .dbml file, querys, inserts updates etc
    Services
    Silverlight APP -> SL app call wcf service
    WebProject

    Can you provide some example using this estructure?

    Thanks again!
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Sep 2011 Link to this post

    Hello,

     If you want automatic paging, sorting, filtering, etc. you can use OData/WCF DataService with RadDataServiceDataSource or WCF RIA Services with RadDomainDataSource. Both services (WCF RIA 
    and Data) however support official only EF - LINQ to SQL was moved in a toolkit.

    With plain WCF services nothing will be automatic - you need to write custom code to handle paging, sorting, etc. 

    Greetings,
    Vlad
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top