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

Data Virtualization on grid with WCF Service

1 Answer 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sundeep Kumar
Top achievements
Rank 1
Sundeep Kumar asked on 25 Apr 2016, 05:17 PM

Hi,

I have a wcf service which return me list of items.

I wanted to use this service as Data Virtualization in wpf example.

For ex

I wanted to show 50 customers in the grid and when user scolls down to grid end, grid should be populated with next 50 customers.

I don't want to use WCF RIA/Data services, I have already existing wcf service which gives me list.

 

Please help me to achieve this.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Apr 2016, 07:34 AM
Hi Sundeep,

Generally, you can try working with the VirtualQueryableCollectionView directly as a source for the grid. More information can be found in the Using Data Virtualization article as well as its corresponding demo.
In case you want to implement the same functionality on your own, you would have to listen for the changes on scrolling (handle ScrollChanged event for example) and request the next portion of items based on the vertical scroll offset. 

Regards,
Maya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Sundeep Kumar
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or