Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
tableToGrid pager rowNum
05/03/2010
23:17
Avatar
raul.arabaolaza
Spain
Member
Members
Forum Posts: 4
Member Since:
06/03/2010
sp_UserOfflineSmall Offline

Hi,

I m playing with jqgrid and my first try is convert and existing table to a jqgrid. All works fine, but i can make the  pager work, so my question (maybe a stupid one) is if i can use pager when using tableToGrid and if so if i can use rowNum to control the rows number, all my tries have failed. The pager is shown but it dosen't work. It displays allways 0 pages available and the grid have a scroll to show all records at the same time whatever it's number is.

<body>

<script>

$(function(){

tableToGrid("#tabla",{

colNames:["Nombre del individuo","Apellidos del majo"],

pager:'#paginador',

rowNum:2,

viewrecords:true

});

});

</script>

<table id="tabla">

<thead>

<th scope="column">Nombre</th>

<th scope="column">Apellidos</th>

</thead>

<tbody>

<tr>

<td>Juan</td>

<td>Cuesta</td>

</tr>

<tr>

<td>Juan</td>

<td>Cuesta</td>

</tr>

............

<tr>

<td>Juan</td>

<td>Cuesta</td>

</tr>

</tbody>

</table>

<div id="paginador"></div>

</body>

Thanks in advance.

09/03/2010
19:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

The problem is discussed well in this forum. Local paginationis not supported. Will be in the upcomming 3.7 release.

Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

09/03/2010
23:38
Avatar
raul.arabaolaza
Spain
Member
Members
Forum Posts: 4
Member Since:
06/03/2010
sp_UserOfflineSmall Offline

Thanks for the answer Tony, and sorry for not read more carrefully the docs before 🙁 .

Regards, Raúl

26/08/2010
18:30
Avatar
chiragvels
Member
Members
Forum Posts: 4
Member Since:
25/08/2010
sp_UserOfflineSmall Offline

Hi,

pager is not working with tableToGrid.

i can use pager when using tableToGrid, the pager is shown but it dosen't work. It displays allways 0 pages available and the grid have a scroll to show all records at the same time whatever it's number is.

Thanks,

08/04/2011
18:32
Avatar
huntzrlz
New Member
Members
Forum Posts: 1
Member Since:
08/04/2011
sp_UserOfflineSmall Offline

Some another user of forum discovered a workaround:

jQuery("#grid").jqGrid('setGridParam', {page: 1}).trigger("reloadGrid");

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
68 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information