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
colModel cellattr function parameters do not agree with documented order
28/01/2012
01:17
Avatar
ANightCoder
Boston, Massachusetts
Member
Members
Forum Posts: 5
Member Since:
28/09/2011
sp_UserOfflineSmall Offline

Just added a topic (with the same name as this one) to the 'Discussion' forum.  Since it describes what might be a bug it probably belongs in the 'Bugs' forum.

Sorry for the confusion...

Brian

28/01/2012
11:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Brian,

Sorry for my mystake. I have deleted not the right post.

Also, please post it again.

Sorry.

Tony

P.S. I appeciate your description – Thank you, but just to know that only speaking that some feature work not as you expected

should be proof

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.

29/01/2012
21:20
Avatar
ANightCoder
Boston, Massachusetts
Member
Members
Forum Posts: 5
Member Since:
28/09/2011
sp_UserOfflineSmall Offline

Tony,

Many thanks for your prompt response.  Please find attached a short description of the issue and, as 'proof' an image of the Visual Studio 2010 debugger showing the function parameter values...

Thanks again to you and your associates for a terrific job on jqGrid!!

Best,

Brian

Re: jqGrid v4.1.1 - 2011-06-19

On-line documentation for colModel option: cellattr lists:

 - rowId as the first parameter

 - rawObject as the third parameter

 - rdata as the last parameter and describes it as 'the data row which will be inserted in the row'

When I make a jqGrid and debug the parameters passed to the cellattr function:

 - the first parameters is a JavaScript object

 - the third parameter is a rowId

 - the last parameter is the boolean value: true

Which is correct, the documentation or the v4.1.1 code?  If the documentation is correct is a code fix available in a later jqGrid release or is a fix scheduled for release?

Many thanks in advance for your help!!

Brian

cellattr issueImage Enlarger

30/01/2012
00:50
Avatar
ANightCoder
Boston, Massachusetts
Member
Members
Forum Posts: 5
Member Since:
28/09/2011
sp_UserOfflineSmall Offline

Tony,

Just a quick follow-up on my previous message.  After a little more testing, I find the reported problem with the out-of-order colModel:cellattr function parameters occurs when adding rows.  The problem does not occur when sorting rows!! 

That is, after calling 'addRowData', the parameters passed to the colModel:cellattr function have 'rowId' as the third parameter and 'rawObject' as the first parameter...

After clicking on a grid column header to sort a column, the parameters passed to the colModel:cellattr function are in the order specified in the on-line documentation - 'rowId' as the first parameter and 'rawObject' as the third parameter.

Please note: in both cases, adding rows and sorting columns, the 'rdata' parameter is a boolean value.  This value does not appear to agree with the on-line documentation's description of the parameter.

Hope this helps and thanks again...

Best,

Brian

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
24 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