Forum
08:25
10/04/2010
Here is the grid definition:
datatype : 'local',
colNames : ['ID', 'NAME'],
colModel : [
{name : 'id', index : 'id', width : 150},
{name : 'name', index : 'name', width : 90}
],
pager : '#pager',
pginput : false,
pgbuttons : false,
viewrecords : true,
multiselect : true
});
I'd like to set the data base on user's choice, and the calling code look like this:
$('#dataList').jqGrid('clearGridData');
for (var i = 0; i < data.length; i++) {
var item = data[i];
$('#dataList').jqGrid('addRowData', item.id, {
id : data.id,
name : item.name
});
}
and the "from" and "to" number in footer bar are wrong after that:
Is it a bug?
I'm using jquery 1.4.2 with jquery-ui 1.8.
09:20
Moderators
30/10/2007
Hello,
Thanks. This is a bug and is fixed in GitHub
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.
00:28
25/08/2010
I have downloaded the latest version of jqGrid 3.7.2 , added them to my project, cleared the cache and javascript cache and I am still getting this problem with 'clearGridData'.
my javascript is:
$("#eventList").jqGrid('clearGridData');
for(var i=0;i<=mydata.length;i++) {
$("#eventList").jqGrid('addRowData', i+1 ,mydata[i]);
}
106 records are loaded and the navbar shows 'View -9 - 96 of 106'.
If I comment out the 'clearGridData' then it works, but loading another set of data loads another 106 records and I now have 212 records in the grid.
It appears that the bug fix to 'clearGridData' isn't working. Do I need to load a newer version of jQuery or the other libraries?
Stephen McConnell
Stephen McConnellnnn"Boredom is a personal defect."n -- Lamar Stephens
19:24
Moderators
30/10/2007
Hello,
Thanks. I see some problems here. Will publish the fix in 3.8 soon.
Best Reagrds
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:
39 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