EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: MSAG on January 24, 2019, 07:57:35 AM



Title: Check datagrid collapse or expand
Post by: MSAG on January 24, 2019, 07:57:35 AM
how can check if datagrid collapse or expand?


Title: Re: Check datagrid collapse or expand
Post by: jarry on January 24, 2019, 08:33:16 PM
Detect the 'collapsed' property value to see if the datagrid panel is collapsed.
Code:
var collapsed = $('#dg').datagrid('options').collapsed;
console.log(collapsed);