Telerik RadGrid Custom Empty Message

This article helps you to display RadGrid empty message or change empty message.

Default.aspx/Default.ascx code:


 <div>
        <p>
            RadGrid with custom empty message...
            <br />
        </p>
        <telerik:radgrid id="RadGrid1" runat="server">
        <MasterTableView EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="false">
            <NoRecordsTemplate>
                <div>
                   No Data **Custom Message**</div>
            </NoRecordsTemplate>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:radgrid>
    </div>

 you need script manager for run this code so write a script manager in your .aspx file. i.e.
  <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>


Default.aspx.cs/Default.ascx.cs Code:

   RadGridChild.DataSource = new string[] { };
   RadGridChild.DataBind();





Comments

Popular posts from this blog

C# Copy files from one server to another

Export SharePoint Online Group Users to Excel using Powershell