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
Prefixes to rowids
01/07/2010
01:07
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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 

05/08/2010
15:44
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

30/08/2010
16:50
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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:

// Warning Duplicate IDs
$('[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

09/02/2011
17:47
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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 

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information