This is a migrated thread and some comments may be shown as answers.

Problem in set_dataSource([]) in RadGrid

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Larissa
Top achievements
Rank 1
Larissa asked on 26 Jun 2012, 09:09 AM
Hi,

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.

 

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 28 Jun 2012, 09:39 AM
Hi Larissa,

Do make sure that you are using the latest version of the controls. On my side, the no records template is shown all right by RadGrid. Attached a small sample-proof of that.

Hope it helps.

All the best,
Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Larissa
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or