getColumnConfig

returns the configuration object of the specified column

object getColumnConfig(string id);
idstringthe column ID
objectthe configuration object

Example

dtable.getColumnConfig("title");

Details

The method lets you find out which attributes 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 columns as well.

Setting Column Config

You can also change column configuration using the getColumnConfig() method:

grid.getColumnConfig("year").width = 200;
grid.refreshColumns();

Related sample:  Changing column config

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript framework and page of tree table ui product.