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 hidden col not displayed in form
03/02/2010
11:52
Avatar
Buga
Member
Members
Forum Posts: 9
Member Since:
23/03/2009
sp_UserOfflineSmall Offline

Hi,

I have 2 custom elements in my coldmodel. Both are set to hidden. One is a Button in the form and the other one is a normal col. I set both to hidden as the data is only needed for the formular.

I also added functions to add these elements to the form. My problem is that if I set the one col to hidden it wont be displayed in the form. If I set hidden to true I see this row in the table which I dont want.

Here is a extract of the code

            colModel :[
                {name:'id',index:'id', sorttype:"int",editrules:{readonly:true},hidden:true},

                {name:'username',index:'username',width:100,editable:true,editoptions:{size:50,maxlength:50},editrules:{required:true,custom:true,custom_func:checkUsername},formoptions:{label:m_gridusername+'*',rowpos:2}},
                 .....
                {name:'software',index:'software',width:50,editable:true,hidden:true,edittype:'custom',editoptions:{custom_element: SoftwareElm, custom_value:SoftwareValue},formoptions:{label:'Software*',rowpos:15,colpos:1}},
                {name:'scdsearchbutton',index:'scdsearchbutton',width:50,editable:true,hidden:true,edittype:'custom',editoptions:{custom_element: ScdButtonElm, custom_value:ScdButtonValue},formoptions:{label:'',rowpos:1,colpos:2}},                
            ],                                                                               

The Button is displayed while the Custom Multiselectbox isnt displayed in my form.

How Can I display the the software element in the form without showing the the col in the table?

I tryed to set it with

$("#tr_software").css('display','inline');

but this looks ugly as all other rows dont have the display property

05/02/2010
12:08
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Did you have looked at the docs?

Please, first consult the docs before posting.

http://www.trirand.com/jqgridw.....#editrules

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

05/02/2010
12:27
Avatar
Buga
Member
Members
Forum Posts: 9
Member Since:
23/03/2009
sp_UserOfflineSmall Offline

Hi Tony,

thansk for the reply.

Yes I read the docu otherwise I wouldnt be able to add the customfunctions but I havew to admit that I oversee the edithidden attribute.

Now this problem is fixed:)

Thanks.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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