Forum
11:50
24/04/2010
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
21:03
10/06/2011
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
00:21
10/08/2009
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
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66