Forum
November 2nd, 2014
A
A
A
The forums are currently locked and only available for read only access
Topic RSS
(Un)Selection problem
21/09/2009
03:53
03:53
marko
Guest
Guests
Hi,
There is a problem selecting rows in the situation showed in below sample code.
When you select a sigle row, and then you select another row, both rows stay selected.
I noticed that if I remove the backslash (the same thing happens with slashes) from the username, selection works perfectly.
Thanks.
jQuery().ready(function() {
// We use a document ready jquery function.
jQuery("#list2").jqGrid({
datastr: "{\\"Page\\":1,\\"Total\\":1,\\"Records\\":3,\\"Rows\\":[{\\"Username\\":\\"ISTRA\\\\\\\\marko\\"},{\\"Username\\":\\"ISTRA\\\\\\\\marko2\\"},{\\"Username\\":\\"ISTRA\\\\\\\\marko3\\"}]}",
datatype: "jsonstring",
jsonReader: {
root: "Rows",
page: "Page",
total: "Total",
records: "Records",
repeatitems: false,
id: "0"
},
height: 250,
colModel: [
{ name: 'Username', key: true, label: 'Username', width: 150, editable: true },
{ name: 'DatabaseName', label: 'DatabaseName', width: 50, editable: false },
{ name: 'ServerName', label: 'ServerName', width: 50, editable: false },
{ name: 'ConnectionString', label: 'ConnectionString', width: 250, editable: true },
{ name: 'XslFilesPath', label: 'XslFilesPath', width: 250, editable: true }
],
caption: "Manipulating Array Data"
});
});
21/09/2009
07:10
07:10
tony
Sofia, Bulgaria
Moderator
Members
Moderators
Moderators
Forum Posts: 7721
Member Since:
30/10/2007
30/10/2007
Offline
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.
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
63 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