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
Multiselect problem
04/03/2011
15:53
Avatar
gege2mars
Member
Members
Forum Posts: 3
Member Since:
04/03/2011
sp_UserOfflineSmall Offline

Hi i ve found a bug on the jqgrid multiselection

http://trirand.com/blog/jqgrid.....qgrid.html

category   Advanced>Multiselect

  1. check manually the first  row Inv No = 1
  2. check all rows with the 'check all' checkbox
  3. click on Get Selected id's link  and value 1 is displayed twice

Bye

08/03/2011
12:08
Avatar
gege2mars
Member
Members
Forum Posts: 3
Member Since:
04/03/2011
sp_UserOfflineSmall Offline

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    Frown

18/03/2011
17:49
Avatar
bound0
New Member
Members
Forum Posts: 1
Member Since:
18/03/2011
sp_UserOfflineSmall Offline

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,

http://bbs.blueidea.com/thread-3015563-1-1.html

21/03/2011
18:29
Avatar
gege2mars
Member
Members
Forum Posts: 3
Member Since:
04/03/2011
sp_UserOfflineSmall Offline

Thank u , it works really good..

Forum Timezone: Europe/Sofia

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.com

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information