Forum


23:17

06/03/2010

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.
19:44

Moderators
30/10/2007

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.
23:38

06/03/2010

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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66