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_TopicIcon
No data shown with multiselect
06/02/2009
08:29
Avatar
kfallon
Member
Members
Forum Posts: 3
Member Since:
06/02/2009
sp_UserOfflineSmall Offline

I am having a problem with multiselect in version jqGrid v3.3.2 on top of jQuery 1.3.1. If I set multiselect to TRUE, then I get the following error, and no data loads

[Exception... "'Syntax error, unrecognized expression: [@id^=jqg_]' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]

Line 0

Note that despite this error, I can click to sort, roll up the table, and change the width of the columns.

If I change the multiselct option to false, the table loads, there are no errors, I can click to sort and all seems good...

I have searched the forum, and I'm using an example right out of the docs. All the js/* libraries seem to be loading. The demo in the documentation site does work properly. I have tried under FF2 and Opera 9. In Opera, the red "loading" icon does not appear, and I can see the "select all" check box is there.

Thanks for the library and your help. I am working on a FOSS appllication for emergency management.

Kevin

Here is the js I am using, copied from the source.

2$(document).ready(function(){
3 $("#list4").jqGrid({
4 datatype: "local",
5 height: 450,
6 colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
7 colModel:[
8 {name:'id',index:'id', width:60, sorttype:"int"},
9 {name:'invdate',index:'invdate', width:90, sorttype:"date"},
10 {name:'name',index:'name', width:100},
11 {name:'amount',index:'amount', width:80, align:"right", sorttype:"float"},
12 {name:'tax',index:'tax', width:80, align:"right",sorttype:"float"},
13 {name:'total',index:'total', width:80,align:"right",sorttype:"float"},
14 {name:'note',index:'note', width:150, sortable:false} ],
15 imgpath: 'themes/basic/images',
16 multiselect: true,
17 caption: "Manipulating Array Data" });
18
19 var mydata = [
20 {id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},
21 {id:"2",invdate:"2007-10-02",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},
22 {id:"3",invdate:"2007-09-01",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},
23 {id:"4",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"},
24 {id:"5",invdate:"2007-10-05",name:"test2",note:"note2",amount:"300.00",tax:"20.00",total:"320.00"},
25 {id:"6",invdate:"2007-09-06",name:"test3",note:"note3",amount:"400.00",tax:"30.00",total:"430.00"},
26 {id:"7",invdate:"2007-10-04",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}
27 ];
28
29 for(var i=0;i<=mydata.length;i++)
30 jQuery("#list4").addRowData(i+1,mydata[i]);
31 });
Thanks
06/02/2009
10:41
Avatar
kfallon
Member
Members
Forum Posts: 3
Member Since:
06/02/2009
sp_UserOfflineSmall Offline

I was watching another post, and saw that datatype clientSide and local may not be the same, so I changed mine from local to clientSide, but it did not affect the results.

06/02/2009
10:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You should upgrade to jqGrid 3.4 beta in order to work with jQuery 1.3.1

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.

06/02/2009
11:00
Avatar
kfallon
Member
Members
Forum Posts: 3
Member Since:
06/02/2009
sp_UserOfflineSmall Offline

Thanks ! That has resolved the issue.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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