Hi ScrottNL,
To change the columns Header Text displayed to the users, you can use this:
$("#jqxgrid").jqxGrid('setcolumnproperty', 'firstname', 'text', 'New Text');
– ‘firstname’ is the datafield’s name.
– ‘text’ – this is the property name
– ‘New Text’ – this is the new value of the ‘text’ property.
To change the entire Columns Array, you can dynamically set the Grid’s columns property.
For example:
var columns = [{ text: 'Column 1', datafield: 'firstname', width: 90 }, { text: 'Column 2', datafield: 'lastname', width: 90 }, { text: 'Column 3', datafield: 'productname', width: 150}];$("#jqxgrid").jqxGrid('columns', columns);
Note that the Grid should be initialized when you change any of its properties or call a method i.e the data binding operation should be completed.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com