redefines a single configuration property (or a object with properties)
property | string | the property name or a object with properties that need redefining |
value | any | the new property value |
// redefines the width of the datatable
$$("mygrid").define("width", 300);
$$("mygrid").resize();
The component should be refreshed to reflect the changes.
You can use the config property to change the desired configuration option, e.g. a column property:
$$("myGrid").config.columns[0].width = 200;
$$("myGrid").refreshColumn();