Oleg, I have to say that I consider this to be a design flaw. We shouldn't have to follow variable naming constraints for our titles. If spaces in the IDs that are created are a no-no, why not have jqgrid insert underscores when it creates the IDs?
Your problem is that you use tableToGrid plugin insted of the usage of jqGrid directly. If you need use titel having blanks you should use colNames option of jqGrid (or the same option of tableToGrid) instead of the usage of ids having blanks.
If you want modify the code you should better use $.jgrid.jqID instead of replacement of blanks to undescores. The function $.jgrid.jqID are used in the most places of jqGrid code, but still not everywhere. The problem it very easy. It one have meta-characters as the part of id and one want to use the id as a part of the jQuery selector one have to escape the characters. The method $.jgrid.jqID do exactly the job.
Oleg, I'm not understanding how to use $.jgrid.jqID to accomplish this. Is this separate from the grid initialization? How is it supposed to be called? I've tried adding:
jQuery.jgrid.jqID(' ');
but this doesn't seem to have any affect.
Yes, it's what I mean. Pobably I expressed me not clear enough before. In general one can excape or use a numerical code of any ISO 10646 character (see here) used in the selector.
You can use code like
$.extend($.jgrid, {
Author
Replies
Viewing 8 replies - 1 through 8 (of 8 total)
The forum ‘Bugs’ is closed to new topics and replies.