Forum
01:45
27/07/2009
Is there any way to set the width of text/textarea field in the form editor? I would prefer it if they would just carry over the widths from the initial colModel, but even a method of setting them manually would be fine for now. I looked through the documentation and didn't see anything, but wanted to pose the question here before putting it in the feature request forum.
04:25
12/02/2010
Set the editoptions on your col definition, such as:
{name:'qty',
index:'quantity',
width:20,
sortable:true,
align:'center',
edittype: 'text',
editable:true,
editoptions:{size:10},
formoptions:{label:'Quantity'}},
the edittype is default to 'text' but I just added for clarity you can change it to any form field though.
HTH,
lupin
04:49
27/07/2009
One further question: Is there any way to set the width for only the form mode and not the inline edit mode? I now have the issue of controls getting truncated in inline-edit mode when I'm using a fixed-height grid and jqGrid tries to scrunch the columns to create space for a scroll-bar.
Thanks,
Alamei
Most Users Ever Online: 715
Currently Online:
22 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