EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 15, 2025, 07:14:23 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Empty Treegrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: Empty Treegrid (Read 8215 times)
arma
Full Member
Posts: 110
Empty Treegrid
«
on:
December 13, 2013, 05:44:46 PM »
Hi,
How to empty grid in treegrid? I just need to clear the grid column but not the tree. I was wondering an easier way to clear data in jeasyui component by providing builtin method. grid.treegrid('clear'), grid.datagrid('clear'), combobox('clear') etc.
Thanks
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Empty Treegrid
«
Reply #1 on:
December 13, 2013, 07:20:50 PM »
Do you wish to hide columns or empty the rows data?
To hide a column, please call 'hideColumn' method.
Code:
$('#tg').treegrid('hideColumn',field);
To clear the rows data, call 'loadData' method with empty data.
Code:
$('#tg').treegrid('loadData',[]);
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...