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

Rad grid Display Blank Data when data bound dynamically

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Testing
Top achievements
Rank 1
Testing asked on 24 Nov 2013, 12:16 PM
I have rad grid, when I dynamically data bound to rad grid and if data bound return zero rows the grid column also not display... Actually I want to display column with single row contains "no record found" if data bound return zero record

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 25 Nov 2013, 04:15 AM
Hi,

Each GridTableView has a property NoRecordsTemplate. This property defines a template that will be displayed if there are no records in the assigned DataSource. There is a boolean property EnableNoRecordsTemplate which defines whether GridTableView will use the defined NoRecordsTemplate or not. By default its value is true. You can customize the Text as follows:

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server">
  <MasterTableView>
    <NoRecordsTemplate>
      <div>
        No Records Found</div>
    </NoRecordsTemplate>
  </MasterTableView>
</telerik:RadGrid>

Thanks,
Princy
Tags
Grid
Asked by
Testing
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or