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
duplicate tr ids if multiple grids
27/09/2011
20:41
Avatar
fontzter
Member
Members
Forum Posts: 11
Member Since:
18/11/2008
sp_UserOfflineSmall Offline

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

28/09/2011
09:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

28/09/2011
15:59
Avatar
fontzter
Member
Members
Forum Posts: 11
Member Since:
18/11/2008
sp_UserOfflineSmall Offline

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

17/10/2011
16:50
Avatar
cosmin
Member
Members
Forum Posts: 3
Member Since:
17/10/2011
sp_UserOfflineSmall Offline

Hi guys,

I saw that the id prefix new feature was included in the new release, could you give me a sample with how will be use this property ? I tried to put the property in various place but no success until now.

Please advice!

Forum Timezone: Europe/Sofia

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

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information