EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: dtucker on January 03, 2014, 08:17:32 AM



Title: Change table title
Post by: dtucker on January 03, 2014, 08:17:32 AM
How would I change the tables title in jquery? I want to change the title once an even happens such as combobox selection.
I already tried below and neither worked:
Code:
 $('#dgMytablegrid').prop('title', 'your new title'); 


and
Code:
 $('#dgMytablegrid').prop('title', 'your new title');


Thanks


Title: Re: Change table title
Post by: stworthy on January 03, 2014, 05:22:37 PM
To change the panel title, call 'getPanel' method to get panel object and then call 'setTitle' method.
Code:
var p = $('#dg').datagrid('getPanel');  // get the panel object
p.panel('setTitle','...');