Forum



17:42

04/04/2012

It is possible to group some fields in the edit form?
I would like to group some fields together, give them a summarizing name and give the group some different background color and maybe even border so the user can navigate more easily.
Suppose I have 4 entries in the colModel:
name address title income
I would like to show it in the edit form like:
Personal:---------- | name [ ] | | address [ ] | ------------------- Business:---------- | title [ ] | | income [ ] | -------------------
where the fields belonging to the Personal group/category would have - let's say - light green background and fields in the Business group would have light red background.
The difficulty is that there are lots of fields and I wouldn't want to give them background color on a one-by-one basis. And if there are groups then I could even use some collapse jQuery plugin to let the user to hide some of the groups.
It is possible to group some fields in the edit form? I would like to group some fields together, give them a summarizing name and give the group some different background color and maybe even border so the user can navigate more easily. Suppose I have 4 entries in the colModel:
I would like to show it in the edit form like:
where the fields belonging to the Personal group/category would have - let's say - light green background and fields in the Business group would have light red background. The difficulty is that there are lots of fields and I wouldn't want to give them background color on a one-by-one basis. And if there are groups then I could even use some collapse jQuery plugin to let the user to hide some of the groups. |
10:35

Moderators
30/10/2007

Hello,
Currently this feature is not available or at last adding such functionality requiere to use fsome events and knowledge of the structure of the edit form.
We plan in the next major release to introduce a templating in form editing.
In this case you can do custom forms.
Kind Regards
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.
18:52

04/04/2012

tony said:
Hello,
Currently this feature is not available or at last adding such functionality requiere to use fsome events and knowledge of the structure of the edit form.
We plan in the next major release to introduce a templating in form editing.
In this case you can do custom forms.
Kind Regards
Thank you for your answer.
I finally solved my problem by modifying the HTML of the edit form in the beforeShowForm event handler and by applying some styles to the rows in the edit form one-by-one. Not a beautiful solution, but works.
It would be awesome if the grouping available in the grid heading could go into the edit form too. This way one setting would eliminate two needs.
Anyway I'm looking forward for the new version of this awesome program. 😉
Most Users Ever Online: 715
Currently Online:
62 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