Forum
01:35
Moderators
30/10/2007
Hello,
There is no problem to do this automatically, but in most cases we place some texts in the footer which I think they should not be deleted. Instead use footerData method (see docs) to clear the needed values on footer.
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:17
Dear Tony,
Eventhough the cellvalues can be set to empty string individually, the grid line of the footerrow are still there. As footerrow cannot be changed, I set $(".ui-jqgrid-ftable").css('visibility','hidden') to hide the footerrow completely. Of course, it would be much better if that can be done by specifying a parameter in clearGridData.
Best regards,
Rayson
07:58
Moderators
30/10/2007
Hello,
Done. Will be in 3.5.1. Also added a option to clear the footer if available.
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.
04:49
Moderators
30/10/2007
Hello,
Please clear the cache and test. It should work. Testted many times
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:07
Dear Tony,
I found out the problem was caused by using .footerData in gridComplete. I used that instead of userDataOnFooter:true because I don't want the footer to follow column formats (I have a count below checkbox column). It seems clearGridData() also triggered gridComplete and footer was refreshed with old data after cleared by $(".ui-jqgrid-ftable td",$t.grid.sDiv).html(" "); in grid.base.js. Besides, footer's grid lines will remain there if the cell values are cleared individually.
Best regards,
Rayson
01:41
Moderators
30/10/2007
Hello Rayson,
Yes, clearGridData call a internal updatepager function, which call gridComplete event. This is needed to set correctly the information on pager if available.
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.
10:52
Moderators
30/10/2007
Hello,
I think there is no need to fix it, since the updatepager is a basic function. Maybe you can do something like this:
function myGridComplete () {
// here your code for grid complete
}
$("#mygird").setGridParam({gridComplete:null}).clearGridData(true).setGridParam({gridComplete:myGridComplete});
But I'm not sure where you call this.
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:
93 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