Forum
15:10
22/12/2008
Hi Tony,
I use localStorage to store the last value of grouping-col, and whe init grid read this value
<html>
<select id="chJqgGroup" style="visibility: hidden;">
<option value="name">name</option>
<option value="clear">remove</option>
</select><scrip>
var defGpval = …. ;// read last value from cookie or localStorage
groupingView : {
groupField : [ defGpVal ],
groupColumnShow : [true],
groupText : ['<strong>{0}</strong> ({1})'],
}</scrip>
</html>
when last grouping-select is set to 'clear' after page unload,then next page open the grid will hangup always display 'loading…' or no data display even if server send the correct some data. And by this way,the grid post value contains this:
_search falsend 1290516992824page 1rows 12sidx clear desc, idsord asc
I must deal with the incorrect column name of 'clear'.
if i set the default value to null or '' ,also issue. grid post
"sidx
" or
"sidx
" // none of first col
It seems to add some condition to deal with NULL/FALSE/blank string or drop 'clear' (if u use striing 'clear' to indicate none-grouping) in grid.grouping.js -> groupingGroupBy()
Best Regards
waiting
20:39
Moderators
30/10/2007
Hello,
Not sure if this is a bug. I will test this situation, but rather I will point you to other thing in your code:
You have
var defGpval =
but in grouping you have:
groupingView : {
groupField : [ defGpVal ],
groupColumnShow : [true],
groupText : ['<strong>{0}</strong> ({1})'],
}
Java script is case sensitive.
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.
03:33
22/12/2008
Sorry for false posting-input, I'm sure the source is :
var defGpVal = …..
….
groupField : [ defGpVal ],
The problem is whatever the defGpVal null or blank string , jqGrid will alway post this value as the value of sidx, such as "null desc, id" or " desc, id" (i use 'sortname : 'id','). AND gird do NOT display data return from server when defGpVal is null or blank, so i can not init grid by non-grouping setting when use grouping module (chang to othing setting and then chang back to 'clear' by <select> works good ).
Best regards
waiting
Most Users Ever Online: 715
Currently Online:
19 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