Reputation: 11
i already try
$('#dg').datagrid('reload');
in the description it's describe "reload the current page data" but it didn't work
first i have page like this
http://www.indojpg.com/images/994Untitled.jpg
after i add some data it becomes like this
http://www.indojpg.com/images/431Untitled2.jpg
and then after i save the data the field should became empty again like first picture
how can i do this?
anyone can help me?
thank you
Upvotes: 1
Views: 6127
Reputation: 31
you can try this:
$('#dg').treegrid('loadData', {"total":0,"rows":[]});
Upvotes: 1
Reputation: 11
If only you want clear or empty datagrid, You can try this:
$('#dg').datagrid('loadData',[]);
Upvotes: 1
Reputation: 7289
You can clear/empty the contents by using .html('');
So $('#dg').html('');
will work in your case for clearing the datagrid
Upvotes: 0