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_Related Related Topics sp_TopicIcon
default groupField== 'clear' cause grid hangup
Tags: grouping
23/11/2010
15:10
Avatar
waiting
Member
Members
Forum Posts: 40
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

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

false
nd

1290516992824
page

1
rows

12
sidx

clear desc, id

sord

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 

null desc, id

"  or

"sidx  

desc, id

"    // 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

23/11/2010
20:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

24/11/2010
03:33
Avatar
waiting
Member
Members
Forum Posts: 40
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information