Hi,
I am trying to use the Javascript API in order to create a custom Grid. One of the options of the getGrid method provides the property. Here is the description from the documentation.
cm: a custom ColumnModel
After some research, I found how to define the columns that I want, but can't figure out how to get them into the CustomModel. Here is the code to define the columns:
var cmDef = [
{header: vui.ui.workspace.getMessage("grid.columns.name"), width: 200, sortable: true, renderer: vgi.nameColumnRenderer, dataIndex: 'name', id: 'name'},
{header: vui.ui.workspace.getMessage("grid.columns.approval"), width: 150, sortable: true, renderer: vgi.searchStatusRenderer, dataIndex: 'status', id: 'status', hidden: true},
{header: vui.ui.workspace.getMessage("grid.columns.type"), width: 200, sortable: true, renderer: vgi.typeColumnRenderer, dataIndex: 'objectTypeDisplayName', id: 'objectType'},
];
While scanning through the source, the only thing that I could find was:
var gridColumnModel = new vExt.grid.ColumnModel(cmDef)
Unfortunately, that code will throw an error on my page because it says that there is no constructor available.
Does anyone have information on how to implement a custom column layout.
Thanks,
Eric