NHibernate DomainService, DataPager and Telerik GridView

2 posts, 0 answers
  1. Elfo Srl
    Elfo Srl avatar
    7 posts
    Member since:
    Nov 2009

    Posted 20 Jan 2010 Link to this post

    Hi,

    I've implemented a NHibernateDomainService by inherit from DomainService class (I'm using WCF Ria Service Beta released on November) and I've associated it with a Telerik GridView; I can see data and work with it, but if I use DataPager, it not work and I see only the first page...
    Could you help me?
    Thanks in advance,
    Carlo Fedeli

  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    782 posts
    Member since:
    Sep 2012

    Posted 25 Jan 2010 Link to this post

    Hello Carlo,

    In order to get the paging to work correctly I believe you should return IQueryable from your data service operations. Actually I was able to get it working correctly using Brad Abrams example for nHibernate and WCF RIA Services. I have updated the example to use RadGridView instead of DataGrid. You can find the sample attached to this forum thread.

    P.S.: If you want the built-in RadGridView filtering to filter on the server check out this online example which illustrate how to achieve this.

    Hope this helps,
    Stefan Dobrev
    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 Release
Back to Top