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

Web Service/PageMethod client side binding - data and count

1 Answer 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 25 Sep 2010, 08:19 AM
Over the last week I have researched ways to use client-side binding with the radGrid.

I understand that I can use declarative binding and write a single pagemethod/web service that will bring back both the data and the count and the declaritive code will handle binding both sets of data.  Is there a way to do the same when calling a page method  or web service directly from javascript?

I am aware of the methods for binding the grid and setting the virtualItemCount, but I believe I would have to have to parse the json result set to get the count information as these are 2 seperate functions.  Is there a way to pass the json result set to the grid and it knowing how to bind both the data and the count information?

I ask this because I'd like to call a single WCF service using only jQuery.  I'd like to bind the resulting data + count to the grid.  Am I asking for too much?

thanks,

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 29 Sep 2010, 01:39 PM
Hello Bruce,

In this online demo two separate methods are called for getting the grid data and its count. Check it out and let me know if it helps.

Sincerely yours,
Iana
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
Tags
Grid
Asked by
Bruce
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or