|
1 |
Hi,<br /><br />There is a problem selecting rows in the situation showed in below sample code.<br />When you select a sigle row, and then you select another row, both rows stay selected.<br />I noticed that if I remove the backslash (the same thing happens with slashes) from the username, selection works perfectly.<br /><br />Thanks.<br /><br />jQuery().ready(function() {<br /> // We use a document ready jquery function.<br /> jQuery("#list2").jqGrid({<br /> datastr: "{\"Page\":1,\"Total\":1,\"Records\":3,\"Rows\":[{\"Username\":\"ISTRA\\\\marko\"},{\"Username\":\"ISTRA\\\\marko2\"},{\"Username\":\"ISTRA\\\\marko3\"}]}",<br /> datatype: "jsonstring",<br /> jsonReader: {<br /> root: "Rows",<br /> page: "Page",<br /> total: "Total",<br /> records: "Records",<br /> repeatitems: false,<br /> id: "0"<br /> },<br /> height: 250,<br /> colModel: [<br /> { name: 'Username', key: true, label: 'Username', width: 150, editable: true },<br /> { name: 'DatabaseName', label: 'DatabaseName', width: 50, editable: false },<br /> { name: 'ServerName', label: 'ServerName', width: 50, editable: false },<br /> { name: 'ConnectionString', label: 'ConnectionString', width: 250, editable: true },<br /> { name: 'XslFilesPath', label: 'XslFilesPath', width: 250, editable: true }<br /> ],<br /> caption: "Manipulating Array Data"<br /> });<br />}); <br /> |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top