Hi,
I have RadGrid and created a button that call the doClear() javascript as below:
I have RadGrid and created a button that call the doClear() javascript as below:
function doClear() {
var dataSource = [];
$find('<%=radGridAppointment.ClientID %>').get_masterTableView().set_dataSource(dataSource);
$find('<%=radGridAppointment.ClientID %>').get_masterTableView().dataBind();
}
The radGridAppointment does being cleared successfully, but how come the default NoRecordsTemplate (No records to display.) is not shown? I need the this template to be shown as well, instead of clearing the grid only.