Forum
11:45
10/06/2009
Hi Tony -
I've had great success implementing the grid - thanks very much!
I need a feature that will allow me to do a “dirty check” on the grid before the user goes to a new page. I'm using a multiselect and want to prompt them on whether they want to commit any changes they've made (rows they've selected or unselected) before they page. I've put this into grid.base.js myself - basically it adds a return value to the paging button click.
Line 1115:
if(selclick) {
//BL: hack below. Prevents user paging if onPaging returns false
var ePaging;
if (typeof ts.p.onPaging =='function') {
ePaging = ts.p.onPaging(this.id);
}
if(ePaging){
clearVals();
populate()
}else{
ts.p.page=cp;
}
}
And the implementation:
onPaging: function(pgButton){
var dirtyCheck = dirtyCheckFunction();
return dirtyCheck;
},
Cheers,
Brett L.
Edit: renamed e to ePaging to not declare with the function's native e (duh). Also added code to set page number back to the original value rather than increment.
01:06
Moderators
30/10/2007
Hello,
We need a more common solution when goes to this type checking. Also we should do this when sorting and etc. Will think about this after 3.5 is released.
Thanks
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.
12:20
Moderators
30/10/2007
Hello,
I will try to add this in the upcomming 3.6.3 release.
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.
14:50
Thank you 😉
You use onPaging function only once, so I think nothing bad happens if you remove
from line 958 and add next code to lines 1005,1029,1051 passing there one more argument
18:35
Moderators
30/10/2007
Hello,
Try to install the development version - described here
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.
12:46
26/01/2010
19:03
26/01/2010
Got it!
github version
installed as for developer
http://www.trirand.com/jqgridw.....stallation
[Image Can Not Be Found]
minimal code is
colNames:["ID"],
colModel:[
{name:"id"}
],
pager:"#pager"
}).jqGrid("navGrid","#pager");
10:31
Moderators
30/10/2007
Hello,
Thanks 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:
66 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