Forum


11:52

23/03/2009

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
12:08

Moderators
30/10/2007

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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66