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_Related Related Topics sp_TopicIcon
Hidden in Grid, Visible in form
27/02/2011
10:41
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

I can't tell if I am missing something. I want to have additional items in the form but hidden in the table. So, I have the following

{name:'password', index:'password', width:100, editable:true, edittype:"password", editoptions:{edithidden:true, size:25,maxlength:12}, hidden:true},

It hides it in the grid as expected but is not showing it in the form. 

What am I missing?

27/02/2011
13:07
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi Steffan,

The property edithidden:true is a part of editrules and not editoptions like you use currently. The combination of the setting with hidedlg allows you implement the most scanarios in the form editing. For more advance scenarios where you need have different set of visible columns in the form dialog for Add and Edit dialogs you can use beforeShowForm event (see an example in this answer).

Best regards
Oleg 

27/02/2011
17:03
Avatar
Steffan
Member
Members
Forum Posts: 50
Member Since:
18/08/2008
sp_UserOfflineSmall Offline

Thanks, Oleg. Simply changing that from editoptions to editrules fixed the issue. I guess that's what I get for doing that in the middle of the night.

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

I know the problem Steffan. Sometime if one is tired one can do more dengerous things.

I had an idee to write simple validation module which can be used to validate all input parameters of jqGrid. One can easy find the errors like you made or other like the usage of cellSubmit instead of cellsubmit or resizeable instead of resizable column option. The validation can be prity simple, but very helpful to find small bugs.

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

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