Forum



18:23

04/11/2010

Hi all,
I have a grid of 3 columns (Title, Concept, Category). The editable option for 2nd and 3rd columns is false, so i only have Tilte in the edit form. i have 2 issues, the first one is that Title link is a composite column because it supposed to have 2 values one for name and the other for url.
My 1st question is: how to create custom edit form with extra input field for the url value below the name input.
The 2nd question is: how to add other input fields not included in the colNames or ColModel and consequently not included in the datagrid.
Thanks in Advance
04:59

08/06/2010

Your best bet is to include the column in your grid but don't display it. Then you can display it only in the edit form:
colNames: ['Title','URL','Concept','Category'],
colModel:[
{name:'title',index:'title'...},
{name:'url',index:'url', hidden: true, /* doesn't dsplay in the grid */
editrules:{edithidden:true} /*displays the field on edit*/},
...]
Good luck,
Ben
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66