New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Configuring RadGrid in UI for ASP.NET AJAX
Updated on Jul 22, 2026
Environment
| Product | UI for ASP.NET AJAX Grid |
| Version | Current |
Description
I need to configure the RadGrid in UI for ASP.NET AJAX for proper functionality. Configuration includes data binding, enabling features like filtering, sorting, paging, and defining columns.
This knowledge base article also answers the following questions:
- How to set up RadGrid in UI for ASP.NET AJAX?
- How to enable filtering, sorting, and paging in RadGrid?
- How to bind data to RadGrid?
Solution
To configure the RadGrid in UI for ASP.NET AJAX, follow these steps:
- Define the RadGrid in your ASPX page. For example:
aspnet
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false">
<MasterTableView>
<Columns>
<telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID"></telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name"></telerik:GridBoundColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
- Bind data to the RadGrid using the
NeedDataSourceevent. Example:
csharp
protected void RadGrid1_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
RadGrid1.DataSource = GetData(); // Replace with your data source method
}
- Enable required features like filtering, sorting, and paging in the
MasterTableViewconfiguration. Example:
aspnet
<MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true">
</MasterTableView>
-
Add the necessary scripts and stylesheets for Telerik UI for ASP.NET AJAX in your project to ensure proper rendering and functionality.
-
Test the RadGrid in the browser to verify its behavior.