EasyUI Forum
September 13, 2025, 12:04:04 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Dynamically enable/disable datagrid control?  (Read 8016 times)
tomb
Newbie
*
Posts: 14


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


View Profile Email
« Reply #1 on: August 17, 2014, 11:40:24 PM »

To close a datagrid, try this:
Code:
$('#dg').datagrid('getPanel').panel('close');
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!