Forum
15:53
04/03/2011
Hi i ve found a bug on the jqgrid multiselection
http://trirand.com/blog/jqgrid.....qgrid.html
category Advanced>Multiselect
- check manually the first row Inv No = 1
- check all rows with the 'check all' checkbox
- click on Get Selected id's link and value 1 is displayed twice
Bye
12:08
04/03/2011
I ve checked it on the jqgrid version 3.7.2 http://www.ok-soft-gmbh.com/jq.....elect3.htm. It works.
Bug is only present on jqgrid version 3.8.x
17:49
18/03/2011
I have fixed this.
grid.base.js
... ...
if(this.p.multiselect) {
var emp=[], chk;
$('#cb_'+$.jgrid.jqID(ts.p.id),this).bind('click',function(){
if (this.checked) {
$("[id^=jqg_"+ts.p.id+"_"+"]").attr("checked","checked");
ts.p.selarrrow=[]; //add this
$(ts.rows).each(function(i) {
if ( i>0 ) {
if(!$(this).hasClass("subgrid") && !$(this).hasClass("jqgroup")){
$(this).addClass("ui-state-highlight").attr("aria-selected","true");
ts.p.selarrrow.push(this.id);
ts.p.selrow = this.id;
}
}
});
chk=true;
emp=[];
}
... ...
jquery.jqGrid.min.js
... ...
if(this.p.multiselect){var za=[],ua;b("#cb_"+b.jgrid.jqID(a.p.id),this).bind("click",function(){if(this.checked){b("[id^=jqg_"+a.p.id+"_]").attr("checked","checked");
a.p.selarrrow=[]; //add this
b(a.rows).each(function(d){if(d>0)if(!b(this).hasClass("subgrid")&&!b(this).hasClass("jqgroup")){b(this).addClass("ui-state-highlight").attr("aria-selected",
"true");a.p.selarrrow.push(this.id);a.p.selrow=this.id}});
... ...
FYI,
Most Users Ever Online: 715
Currently Online:
51 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