Telerik Rad control just displaying as solid straight line in the browser. But in the Visual studio design it displaying properly.
<telerik:RadGrid ID="RadGrid1" runat="server"
onneeddatasource="RadGrid1_NeedDataSource">
<MasterTableView ShowHeadersWhenNoRecords="false" AutoGenerateColumns="true">
<NoRecordsTemplate>
<div>There are no records to display</div>
</NoRecordsTemplate>
</MasterTableView>
</telerik:RadGrid>
Can some please help me on this
If the datasource of "RadGrid1" is Nothing/Null the control is effectively not bound even if databind() is called. An empty collection can be bound to the control in order for the NoRecordsTemplate to be displayed.
In VB.net:RadGrid1.DataSource = new Object() {}
In C#:
RadGrid1.DataSource = new object[] { };
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With