Forum


01:42

28/07/2009

Hi,
Well, I'm having ploblems to add datas (by local mode, clientside) in my grid, the problem appears in pager and autoscroll.
…
On pager, it does not show correctly the value of “View”…
Sample:
It would have to show: 'View 1 – 12 of 12'
But, it show: 'View -9 – 2 of 12'
And, on autoscrool…
When the last row to be selected, and when I use setSelection('1', false)… It does not show first row (scroll do not jump)…
Somebody know why?
I'm trying add data in this way…
jQuery(”#t_historic_list”).jqGrid({
scrollrows : true,
datatype: 'local',
colNames:['Contador', 'Nome'],
colModel :[
{name:'counter', index:'counter'},
{name:'name', index:'name'},
],
width: 780,
height: 110,
viewrecords: true,
pager: jQuery('#t_historic_list_pager')
});
var myRowData = new Array();
//Set values in myRowData… (The length of myRowData is variable, it can be 1, 2, 100, 1000 or more.
…
//Adddata in grid
for (index = 0; index < myRowData.length; index++ ) {
jQuery(”#t_historic_list”).addRowData(index+1, myRowData[index]);
}
Thanks!
06:37

28/07/2009

Hi,
The problem with addRowData it was solved...
I only add this options: numRows: 0
But, the problem with the scrollbar not yet...
It has some way to use the jQuery-scrollTo plugin(http://plugins.jquery.com/proj.....t/ScrollTo) with jqGrid?
I tried use it but he did not work: $('#jqGridElement_IDName').scrollTo(0,0);
...
10:15

Moderators
30/10/2007

Hello,
Thanks for the second. Will check it.
Best 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.
Most Users Ever Online: 715
Currently Online:
73 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