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
row id which begins with asterix, question marks, spaces VS row select
24/04/2010
11:50
Avatar
szhbug
Member
Members
Forum Posts: 7
Member Since:
24/04/2010
sp_UserOfflineSmall Offline

When I loaded data into basic jqgrid table (multiselect: false), (loaded via url property, datatype=json)

and my data has rows with row id which:

1) begin with two question marks:  "??"

2) begin with asterix: "*"

3) begin with two spaces "  "

After selecting any such row, and then selecting anything else , the selection of such a row can not be deselected.

multiselect: false

column with  id is hidden.

versions:
jquery-1.3.2.min.js
jquery-ui-1.7.2.custom.min.js
jqGrid  3.6.4
Firefox 3.5.9

29/04/2010
06:55
Avatar
IMBigWillie
Member
Members
Forum Posts: 5
Member Since:
20/04/2010
sp_UserOfflineSmall Offline

Jusat saw your post after posting mine.  Another value that is not valid is "/".

17/05/2010
05:14
Avatar
szhbug
Member
Members
Forum Posts: 7
Member Since:
24/04/2010
sp_UserOfflineSmall Offline

szhbug said:

row id which:

1) begin with two question marks:  "??"

2) begin with asterix: "*"

3) begin with two spaces "  "

jquery-1.3.2.min.js
jquery-ui-1.7.2.custom.min.js
jqGrid  3.6.4


with jqGrid 3.6.5 and jquery 1.4.2  this bug  disappeared.

10/06/2011
21:03
Avatar
blicket
New Member
Members
Forum Posts: 1
Member Since:
10/06/2011
sp_UserOfflineSmall Offline

szhbug said:

szhbug said:

row id which:

1) begin with two question marks:  "??"

2) begin with asterix: "*"

3) begin with two spaces "  "

jquery-1.3.2.min.js
jquery-ui-1.7.2.custom.min.js
jqGrid  3.6.4


with jqGrid 3.6.5 and jquery 1.4.2  this bug  disappeared.


Nah, it's still problem.  I can confirm that when using a column with space and / as row id. 

jquery 1.4.4

jquery-ui 1.8.12

jqgrid 4.0

11/06/2011
00:21
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello!

In jqGrid the rowid is the id of the <tr> element (row of <table>). So the ids must sutisty the rules existing for ids see here and here. Some characters like spaces are not permitted in the id. Another charackters can be used after the small fix which I suggested here.

Best regards
Oleg

P.S. I thought a little more about the spaces in the ids and have a suggestion. One can here read the following: "Any character (except a hexadecimal digit, linefeed, carriage return, or form feed) can be escaped with a backslash to remove its special meaning.". So I tried to escape the space (U+0020) charackter and it seems gives very good results. Look at the demo. It seems if one modify the code of jqID function of jqGrid to

jqID : function(sid){
    return String(sid).replace(/[! "#$%&'()*+,.\\/:;<=>?@\\[\\\\\\]\\^`{|}~]/g,"\\\\$&");

all seems to work very good. I'll modify the bug fix so that space character will be also excaped.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
48 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