I want a form of control I use. But the number of fields that are too high. How can I display the grid, but only some of the fields in the form add/edit popup panel show all fields ???
You can use the following code to hide a table column.. JQuery("tableName"). hideCol("colName");
First you will need to setup which columns will be frozen/locked. This is done in colModel setting the property frozen:true.
Formatter supports advanced formatting of the contents of cells in form, in-line and cell editing. Formatter can be used in either of two ways: Predefined and Custom. In this section, we discuss the Predefined Formatter.
Here is how you can do this:
colModel:[
{
name:'email',
label: 'E-mail',
editable: true,
hidden: true,
editrules: {edithidden: true}
}
The E-mail
column will not appear in the grid but it will be present in the edit dialog.
BTW to achieve the opposite (display in the grid but not in the edit dialog):
colModel:[
{
name:'email',
label: 'E-mail',
editable: false
}
Use hidden property for your column
example:
<sjg:gridColumn name="a_unid" index="a_unid" title="Ref id" hidden="true"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With