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

[Solved] RadGrid not showing NoMasterRecordsText when binding to collection

2 Answers 302 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sunny
Top achievements
Rank 1
Sunny asked on 14 Sep 2009, 10:35 PM
Sample code (truncated)

Public Class CustomerCollection
    Inherits List(Of Customer)

End Class

ASPX.VB

custCollection = GetCustomerList()

'custCollection is nothing in my case
RadGrid1.DataSource = custCollection
RadGrid1.DataBind()

and RadGrid is not showing "NoMasterRecordsText"

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Sep 2009, 12:53 PM
Hi,

Try adding the No Records text inside NoRecordsTemplate tag and see whether it is working fine.

ASPX:
 
<telerik:radgrid id="RadGrid1" runat="server"
 <MasterTableView> 
   <NoRecordsTemplate> 
     <div>There are no records to display</div> 
   </NoRecordsTemplate> 
 </MasterTableView> 
</telerik:radgrid> 

-Shinu.
0
Sunny
Top achievements
Rank 1
answered on 15 Sep 2009, 01:32 PM
I tried.. no use

<NoRecordsTemplate>
  <div> No Customer Data.</div>
</NoRecordsTemplate>
<Columns>
Tags
Grid
Asked by
Sunny
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sunny
Top achievements
Rank 1
Share this question
or