Forum
13:42
10/08/2009
Hello Tony!
During examing of the problem described here I've found a bug in delRowData. The problem could be very easy be explained on an example. Let us we use inlineNav with a grid having multiselect:true option. If we would add new row and save it, it will be autonatically selected. Both selrow and selarrrow will be changed. Then we can start to add new row and click "Cancel" button. The cancel button will delete new empty row with respect of delRowData, but it will set selrow option, which will be used in many places of jqGrid code, to null. As the result if one will try to edit priviously added and still selected row one will see the message "one need select some row before starting of editing".
I think that setting of selrow option to null in case of multiselect grid is not correct. I suggest to fix the problem by changing the line of code of delRowData
to the following
if ($t.p.multiselect && $t.p.selarrrow.length > 0) {
$t.p.selrow = $t.p.selarrrow[$t.p.selarrrow.length-1];
} else {
$t.p.selrow = null;
}
}
Best regards
Oleg
10:37
Moderators
30/10/2007
Thanks Oleg.Fixed in GitHub
BestRegards
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:
33 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