EasyUI Forum
May 08, 2024, 08:09:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Change table title  (Read 11908 times)
dtucker
Newbie
*
Posts: 11


View Profile Email
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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','...');
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!