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

Telerik RadGrid client-side data-binding using jQuery

6 Answers 243 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Madhu
Top achievements
Rank 1
Madhu asked on 26 Sep 2012, 04:32 PM
I am using the client side binding with Jquery and seeing that the paging is not working.
Is this a known issue?  IE version I am testing this on is 8.0.6001

Please see the image attached. Even though the page size is 10. All records are shown on each page.
Is there something I am missing. I downloaded the example from Telerik RadGrid client-side data-binding using jQuery
and just ran it.

Any help is appreciated.

Thanks,
Madhu

6 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 26 Sep 2012, 05:08 PM
Hello,

We are not able to do Pagging with jquery binding.

Please check solutions below link.
RadGrid with WCF Rest Service

I think your your binding grid by using below link.
http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrid-in-jquery.aspx#2091435

More info about issue.
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/nested-template-view-is-not-working-with-more-that-10-records.aspx

Actual issue : Because when we binding grid with Jquery it is not able to create button for pagging at client side.

Thanks,
Jayesh Goyani
0
Madhu
Top achievements
Rank 1
answered on 26 Sep 2012, 05:48 PM
Thanks, Jayesh for the response.

It would be helpful for the users to put this comment out there on the documentation.
I spent hours trying this and finally tested the demo with no changes and then realized it does not work as downloaded either.
0
Madhu
Top achievements
Rank 1
answered on 26 Sep 2012, 08:46 PM
Jayesh,

Sorry to ask. But does paging work in any of the client side bindings. I tried this and same behavior.

http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx

This does not use Jquery.
If paging with client side wcf is a problem I want to skip this approach all together.

Thanks,
Madhu
0
Jayesh Goyani
Top achievements
Rank 2
answered on 27 Sep 2012, 05:04 AM
Hello,

Yes. pagging is working with client side binding for that you have to use beloe method.


<ClientSettings>
   <DataBinding SelectMethod="GetDataAndCount" Location="GridWcfService.svc"
      SortParameterType="Linq"  FilterParameterType="Linq">
   </DataBinding>
  </ClientSettings>

 public ResultData GetDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)

Thanks,
Jayesh Goyani
0
Lawren
Top achievements
Rank 1
answered on 11 Nov 2012, 06:16 AM
Hai Jayesh,
Can i send custom parameter to my WCF service.

what exactly i need is 

public ResultData GetDataAndCount(int startRowIndex, int maximumRows, stringsortExpression, string filterExpression,string parameter1
)



Thanks
Lawren Alex
0
Jayesh Goyani
Top achievements
Rank 2
answered on 12 Nov 2012, 05:21 AM
Hello,

No, we can not send extra parameter in "GetDataAndCount".

But don' worry we achieve this thing by different way.

Please check below demo/link.

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

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Madhu
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Madhu
Top achievements
Rank 1
Lawren
Top achievements
Rank 1
Share this question
or