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

Empty RadGrid Default message

2 Answers 759 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Janaki
Top achievements
Rank 1
Janaki asked on 19 Oct 2012, 04:19 AM
Hi all,

I get a "No records to display" message by default when my RadGrid is empty. How do I change the content of this message? Please suggest.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 19 Oct 2012, 04:31 AM
Hi,

Please try the following code snippet to change No records to display.

ASPX:
<MasterTableView NoMasterRecordsText="your text" >

OR

C#:
protected void Page_Load(object sender, EventArgs e)
{
   RadGrid1.MasterTableView.NoMasterRecordsText = "your text";     
}

Thanks,
Shinu.
0
Michael
Top achievements
Rank 1
answered on 11 Sep 2013, 02:45 PM
<MasterTableView>
            <NoRecordsTemplate>
                <table width="100%" border="0" cellpadding="20" cellspacing="20">
                    <tr>
                        <td align="center">
                            <h2 style="color:Black">No Records Found, Pleae Refine Search To Display Carrier's</h2>
                        </td>
                    </tr>
                </table>
             </NoRecordsTemplate>
</MasterTableView>
Another way to add formatting
Tags
Grid
Asked by
Janaki
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Share this question
or