How would you get multiple items using REST

Posted by Community Admin on 03-Aug-2018 06:04

How would you get multiple items using REST

All Replies

Posted by Community Admin on 27-Oct-2010 00:00

I want my control to pull its data from a WCF REST service.

So in the Designer lets say the user chooses to show Items 3, 6, 10, 12

How do you go about handing something like that with a REST approach, or does that fly in the face of the idea :)

Ideally I'd want an XML result with those 4 items which I can just databind (needs to be consumed by flash as well as some telerik bits)

Posted by Community Admin on 27-Oct-2010 00:00

Hi Steve,

You can pass the number of the items you want to take as an agreement of your WCF service. Then in the code of the method you can cast your collections results to Queriable and use the Take method to take N items: Queryable.Take Method

Best wishes,
Radoslav Georgiev
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

This thread is closed