i have a datagrid and a search form, when submit search form, i want to clear the previous results first, then load new data from remote.
i didn't find '
clear', '
reset' or something else in the docs
i try to use
loadData method to load empty data instead, like this:
$('#dtgResult').datagrid('loadData', []);// supposed to clear previous results
$('#dtgResult').datagrid('load', serialize($('#frmSearch'));// fetch new results from remote
i found
loadData method will trigger loader to load data from remote if opt.url is not empty
it is not supposed to load remote data after loadData from local.
is that a bug?
or is there anyway to meet my requirement?