This is a migrated thread and some comments may be shown as answers.
Client Side Rad Grid Binding- How to pass extra arguments to web service method (GetData or GetDataAndCount) other than 4 default arguments and bind grid on a button click with an asynchronous call to
5 Answers 133 Views
This is a migrated thread and some comments may be shown as answers.
Qamar
Top achievements
Rank 1
Qamar asked on 13 Apr 2011, 11:48 AM

Client Side Rad Grid Binding- How to pass extra arguments to web service method (GetData or GetDataAndCount) other than 4 default arguments and bind grid on a button click with an asynchronous call to web service.

I am trying to use client side binding of Rad Grid as demonstrated on the following link http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx. My scenario is a bit different from this one. I want to pass in some 4-5 extra arguments to my web service method from the top level filter controls (not column level filter) on top of the page and then I want to rebind my grid by making an asynchronous call to my web service on a button click without a postback.

5 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 18 Apr 2011, 01:57 PM
Hello Qamar,

With the declarative client-side binding you cannot pass any additional arguments, as the grid does not know what arguments you need and from where to get their values automatically. However, you can bind the grid manually on the client using  the approach illustrated in this demo.

Kind regards,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
javier
Top achievements
Rank 1
answered on 01 Nov 2012, 10:44 AM
Hello Iana,

Is this still the best way to develop Qamar's scenario?
If ti is so, how to modify the given sample in order to filer, paging and sorting?

Thanks,
0
javier
Top achievements
Rank 1
answered on 01 Nov 2012, 10:46 AM
I forgot to ask about edition.
0
javier
Top achievements
Rank 1
answered on 02 Nov 2012, 12:33 PM
For Quamar and future readers:
These sample makes possible adding more parameters and keeps the filtering/sorting functionality:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx
Thanks,
0
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Nov 2012, 01:44 PM
Hello,

Please try with below link/demo.

http://jayeshgoyani.blogspot.in/2012/08/radgrid-with-wcf-rest-service.html

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Qamar
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
javier
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or