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
subgrids not working when parent row_id contains period
19/03/2010
18:09
Avatar
rodk
Member
Members
Forum Posts: 12
Member Since:
19/03/2010
sp_UserOfflineSmall Offline

First just want to say jqGrid is awesome!  Just started using it two days ago and it is saving me a lot of work and producing a nicer UI than my left dominated brain could ever produce.

I have run into one problem with subgrids.  I'm creating a grid to manage DNS zones and the row ID of the parent grid is the domain name.  Since domain names contain dots and jQuery cannot handle unescaped dots (or colons for that matter) in selectors, this caused the subgrid not to be added to the DOM because jQuery couldn't parse the selector.

When using a regular subgrid I couldn't figure out what was happening so I changed to a subgrid as grid and got the same results but was able to track down the problem.  I fixed the problem by escaping the selector as described here: http://docs.jquery.com/Frequen.....otation.3F

This might be worth mentioning in the wiki when describing subgrid as grid, but the source for regular subgrids should probably be updated to take into account the possibility of dots and colons in the row ID when using that row ID to generate the element ID for the grid elements.

22/03/2010
11:25
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. This is true.

We already have such function,

    jqID : function(sid){
        sid = sid + "";
        return sid.replace(/([\.\:\[\]])/g,"\\$1");
    },

but we forgot to set it into the subgrid.

Fixed

Best 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.

22/03/2010
12:06
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

HEllo again.

To quick I responded for this.

Looking into the code I think that it is better to leave the things as they are.

It is up to developer to check these cases.

When we convert the id according to the link provided from you we can go in other issues.

Sorry, will not change it.

Best 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.

22/03/2010
15:37
Avatar
rodk
Member
Members
Forum Posts: 12
Member Since:
19/03/2010
sp_UserOfflineSmall Offline

When using a grid as subgrid it is true that the developer must handle this.  When using a traditional subgrid however, the devleoper does not have the opportunity to modify the ID of the subgrid.  I suppose the ID could be modified server side, but that seems a bit kludgy. 

At any rate, the documentation might make note of these facts.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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