Forum



05:30

17/03/2011

Hello,
I have a problem and can not find answer in wiki docs...
Questions: Is there any way to set custom (different) forms for Edit and Add modes.
Example:
My table had 3 columns (col1,col2,col3).
I need (using pageNav buttoms) open 'Add form' with fields col1,col2 (col3 is hidden) and Edit form with fields col2,col3 (col1 is hidden).
Thank you.
18:26

13/06/2011

Hi! I apologize for my English.
I found the solution if you're interested:
Using events in a form:
beforeShowForm: function (formid) {
document.getElementById ('tr_att_type'). style.display = 'none';
}
where:
tr_att_type - parameter names from colmodel
display - option ('none' - visibility, ''- hidden)
Silly, but the other did not find anything ...
Most Users Ever Online: 715
Currently Online:
57 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