This is a migrated thread and some comments may be shown as answers.

NHibernate DomainService, DataPager and Telerik GridView

1 Answer 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Elfo
Top achievements
Rank 1
Elfo asked on 20 Jan 2010, 08:49 AM
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

1 Answer, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 25 Jan 2010, 03:45 PM
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.
Tags
GridView
Asked by
Elfo
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Share this question
or