Forum
01:07
10/08/2009
Hello Tony,
I answered the question http://stackoverflow.com/quest.....nbsp;which I find very interesting and recommended to post a feature request here. Because no request are created till now I do it myself.
There are an interesting problem. Per default jqGrid create rows in the html table with ids posted back to jqGrid. Not all people know how all works and ids for jqGrid rows may conflict with other ids on the html page. Especially it can be a problem if one has more as one grid on the page. It is possible other simple situation where one use for ids numbers like 1,2,3 and so on and one use already the same numbers as ids on other html elements on the grid.
It would be nice to introduce a new idprefix parameter which can be used for building of html ids from rowids. It wold be important, that all other methods and events which has rowid as a parameter, should receive pure rowid without the prefix. I see the most problem is a backward compatibility for introducing of idprefix parameter. A lot of places in the jqGrid which should be changed is another problem. If default value of such parameter will be at the beginning "", then one will have no compatibility problem during jqGrid version update.
One have already jqID function. What I suggest is one more step in the same direction.
Best regards
Oleg
15:44
Moderators
30/10/2007
Hello Oleg,
Thanks for this.
The 3.8 as written in the blog post will solve this problem. I find your suggestion very usefull and and I think It can be implemented.
Kind 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.
16:50
10/08/2009
Hello Tony,
I found occasionally on stackoverflow small script which can be used to debugproblems with the duplicate IDs and are thinking about how one can more effective use this:
$('[id]').each(function(){
var ids = $('[id='+this.id+']');
if(ids.length>1 && ids[0]==this)
console.warn('Multiple IDs #'+this.id);
});
In case of a mixed HTML code (a part written manually and a part generated per script) one cann't full prevent the problem of ID duplication. What do you think about providing an option like debug: true, which could be used for more checking and displaying of message boxes with the errors found? Diagnostic of the problem with the ID duplication could be a part of the debug: true functionality.
Besr regards
Oleg
17:47
10/08/2009
Hello Tony!
I answerd recently the question which could be solved if jqGrid implemented the idprefix parameter which I suggested some time before. If you find a little time, take a look in the question. Probably the problem is do exist?
Thanks
Oleg
Most Users Ever Online: 715
Currently Online:
76 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