Title: Data grid paging remote loading false ? Post by: yogesh on November 08, 2012, 04:23:57 AM Hi,
I check the data grid paging demo even i tried my own code working fine with remote data. but i observed that paging code is supporting remote data only if i have JSON data with 1000 rows which i am loading first time in datagrid and i want pagination how will it work? i don't want to call server every time. for sorting we are providing remotesort ture/false option, is there any postion for remotepaging ? i didn't found this in documentation. Title: Re: Data grid paging remote loading false ? Post by: stworthy on November 08, 2012, 06:04:47 AM To enable client paging, the loader of datagrid should be redefined. Using buffer view is another good choice.
Title: Re: Data grid paging remote loading false ? Post by: yogesh on November 08, 2012, 06:33:41 AM sorry again asking in details
i didn't found property client paging in document can you provide code ? i saw buffer view its good but i will like to go with paging :) Title: Re: Data grid paging remote loading false ? Post by: Punkerr on November 08, 2012, 06:48:19 AM Check my code in this post: http://www.jeasyui.com/forum/index.php?topic=850.0
Title: Re: Data grid paging remote loading false ? Post by: yogesh on November 08, 2012, 07:17:45 AM sorry Punkerr not getting i check code
i want code for local paging or client pagin my current code is Code: $('#searchResultGrid').datagrid({ search result is 48 rows all 48 rows are coming on the 1st page and pagesize is 10 if i move on 2nd page it still showing 48 rows with page number 2 Title: Re: Data grid paging remote loading false ? Post by: stworthy on November 08, 2012, 06:55:18 PM Please refer to the sample below, which implement the client side pagination functionality.
http://www.jeasyui.com/demo/main/index.php?plugin=DataGrid&theme=default&dir=ltr&pitem=Client%20Side%20Pagination Title: Re: Data grid paging remote loading false ? Post by: yogesh on November 09, 2012, 05:54:03 AM thank you :)
but there is mistake in the demo code Code: datadata.rows = data.originalRows.slice(start, end); it may be Code: data.rows = data.originalRows.slice(start, end); Title: Re: Data grid paging remote loading false ? Post by: yogesh on November 09, 2012, 06:21:24 AM Hi stworthy
can you check the post http://www.jeasyui.com/forum/index.php?topic=864.0 how to maintain the selected checkbox on the pagination Title: Re: Data grid paging remote loading false ? Post by: dtucker on November 04, 2013, 03:59:49 PM I still can't get this to work. Can you see if I'm missing something. I tried following the example but it is not working. It is failing at ".splice == 'function'" because I'm returning json data. My grid populates just not paging correctly.
Code: $('#dgMostVisitedPages').datagrid({ Code: <table id="dgServiceCategory" title="Service Categories" class="easyui-datagrid" toolbar="#toolbarServiceCategory" singleSelect="true"> Thanks Dennis |