EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: jaimi on September 23, 2012, 02:56:49 AM



Title: Field content within the title bar
Post by: jaimi on September 23, 2012, 02:56:49 AM
I would like to show some information from the result query / datagrid field within the title bar / header of the datagrid.
How is that possible?


Title: Re: Field content within the title bar
Post by: stworthy on September 23, 2012, 05:47:42 PM
Get the datagrid panel and call 'setTitle' method to change the title.

Code:
var p = $('#dg').datagrid('getPanel');  // get the panel object
p.panel('setTitle', 'new title');  // change title information