EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: tomb on August 17, 2014, 08:11:54 PM



Title: Dynamically enable/disable datagrid control?
Post by: tomb on August 17, 2014, 08:11:54 PM
How can I dynamically enable/disable a datagrid control (or any panel-based control for that matter)?  Also, is there a way to show/hide a control dynamically?  I tried the open/close methods (that I thought were derived from the panel), but that didn't work.


Title: Re: Dynamically enable/disable datagrid control?
Post by: stworthy on August 17, 2014, 11:40:24 PM
To close a datagrid, try this:
Code:
$('#dg').datagrid('getPanel').panel('close');