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
Inline Edit - Behavior Issue with Hidden Column
21/12/2008
17:24
Avatar
Barry
Texas, USA
Member
Members
Forum Posts: 38
Member Since:
04/11/2008
sp_UserOfflineSmall Offline

Tony,

The Dec. 14th version of jQgrid has cleared up a bunch of issues. Nice work. Thanks!

I have come across a situation where inline edit behaves differently depending on "hidden:true". For reference here is the colModel for that column:

{name:'EntityID',index:'EntityID', hidden:false, width:80,edittype:'text', editable:true, editoptions:{readonly:true,size:4}},

I am adding a row to the grid. I have a few columns that need some initial values so I create a datarow array and call addRowData(-1,datarow,"last").

The EntityID field is getting set using an AutoComplete field event.

With "hidden:false": The following call works:

jQuery("#"+id+"_EntityID","#grid1").val(data[1]);

With "hidden:true": The following call works:

jQuery("#grid1").setRowData(id,{'EntityID':data[1]});

In design we show all the fields. Later when it all works we hide fields. But then that breaks the grid and you don't see that until you do a full test.

I saw one other issue regarding " & n b s p ; " and "hidden:true". This one is easy to explaine, I think. If the column is not set and hidden:true then the post value is "& n b s p ;" However if "hidden:false" then the post value is "" (empty string). In my system they get evaluated differently. The correct value shoud be and empty string. 

Barry

23/12/2008
02:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Barry,

Thank you for posting this issue. It seems that this module will better and better.

1. You are right. This is the current behavior. I'm thinking what is right - to create a input elements of the hidden fields or not. What is your think about this?

2. Thank you Fixed. The fix is around the line 69

if( $t.p.colModel[i].hidden===true) { tmp[nm] = $(this).html(); }

replace with

if( $t.p.colModel[i].hidden===true) { tmp[nm] = $(this).html().replace(/\\&nbsp\\;/ig,''); }

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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