Forum
18:09
19/03/2010
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.
11:25
Moderators
30/10/2007
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.
12:06
Moderators
30/10/2007
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.
15:37
19/03/2010
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66