Documentation

getColumnConfig

returns the configuration object of the specified column

object getColumnConfig(string id);

Parameters

idstringthe column id

Returns

objectthe configuration object

See also

Example

dtable.getColumnConfig("title");

Details

The method let's you to know attributes that are specified for a certain column.


For example, if you have the following configuration:

columns:[
    { id:"rank",    editor:"text",      header:"",              width:50},
    { id:"title",   editor:"text",      header:"Film title",    width:200},
    { id:"votes",   editor:"text",      header:"Votes",         width:100}
]


calling getColumnConfig("title") will return the object as in:

{
    id:"title",
    editor:"text",
    header:[{
        text:"Film title"
    }],
    width:200
}

Note that the method works for hidden column as well.

Back to top