Forum


20:41

18/11/2008

Hi,
Thanks for the awesome plugin. I noticed that the id attribute on the tr elements is set to the key field value. Since this is often an integer from the database, it is quite possible to have the same id for different grids. This causes elements on the page with the same id. Are there plans to change this? Maybe, prefix the id with the grid table id or some random guid or something?
Thanks,
Dave
09:12

Moderators
30/10/2007

Hello,
Thanks. This should be done a long time before this post.
Now it is implemented.
I have added idPrefix parameter to the grid where you can set it and have a uniquie id's for every grid.
https://github.com/tonytomov/jqGrid/commit/a723670fc177670f7454711294286472b07eac5d
We will publish very soon a new release.
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.
15:59

18/11/2008

Hi Tony,
Thanks for the very fast response. The idprefix will be great. I had a couple of questions though:
Do you plan to strip the prefix back out for all the events and methods that use selrow?
If so, maybe you could make a random default value something like this:
idPrefix : new Date().getTime().toString()
Thanks again,
Dave
Most Users Ever Online: 715
Currently Online:
28 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