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
invalid column css ID generation
25/03/2011
20:26
Avatar
logemann
Member
Members
Forum Posts: 6
Member Since:
13/02/2011
sp_UserOfflineSmall Offline

Hi,

following snippet:

...

colModel:[
       {name:'client.name1',classes:'client', index:'client', width:250,sorttype:"int", editable: true,edittype:"select",...

As you can see. The json reply contains a structure where in the record set is a client and inside the client is a name1 attribute. This works well apart from the fact that the css ID that is generated is: jqgh_client.name1

The css selector spec forbids dots inside ID names. I would propose some kind of transformation here to underscore or something.

The point is, i need to select this column via CSS selector and this is not possible anymore by ID.

Thanks

Marc

31/03/2011
16:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Use jsonmap property. Actually which version do you use? This should be fixed in the last one

Regards

Tony

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.

31/03/2011
17:15
Avatar
logemann
Member
Members
Forum Posts: 6
Member Since:
13/02/2011
sp_UserOfflineSmall Offline

I am using jqGrid  3.8.2

will look up jsonmap and how to use it....

Marc

31/03/2011
17:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

There is a function called $.jgrid.jqID( id );

You will need maybe to look here:

http://stackoverflow.com/quest.....ains-a-dot

Regards

Tony

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.

31/03/2011
17:55
Avatar
logemann
Member
Members
Forum Posts: 6
Member Since:
13/02/2011
sp_UserOfflineSmall Offline

But what do you mean with "that one should be fixed". What is fixed and in what version? I dont want to fiddle around with ugly workarounds in the jQuery selector but instead would love to see a better ID construction in jqgrid.

31/03/2011
18:17
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

It is fixed, but if you want to try to select this manually you should apply this function.

Would be nice to hear from you a solution for

better ID construction in jqgrid.

Regards Tony

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:
57 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