Hello Dimitar,
In the above example you set the table width through function. But i need the column width to be set using function.
In the below example i write how i need to use the function.
$(“#jqxgrid”).jqxGrid({
width: myWidth(2),
theme: ‘energyblue’,
height: 300,
source: adapter,
sortable: true,
columns: [{
text: ‘First Name’,
datafield: ‘firstname’,
width: myWidth(2)
}, {
text: ‘Last Name’,
datafield: ‘lastname’,
width: myWidth(2)
}, {
text: ‘Product’,
datafield: ‘productname’,
width: myWidth(2)
}]
});