Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support and Learning
Productivity and Design Tools
<
telerik:RadGrid
ID
=
"RadGridFilter"
runat
"server"
OnItemDataBound
"RadGridFilter_ItemDataBound"
OnNeedDataSource
"RadGridFilter_NeedDataSource"
AllowFilteringByColumn
"true"
EnableLinqExpressions
"false"
>
MasterTableView
Columns
telerik:GridBoundColumn
DataField
"OrderID"
HeaderText
SortExpression
UniqueName
FilterTemplate
telerik:RadComboBox
"FilterCombo"
AutoPostBack
OnSelectedIndexChanged
"FilterCombo_SelectedIndexChanged"
</
protected
void
RadGridFilter_NeedDataSource(
object
sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
string
selectQuery1 =
"select top 10 OrderID from Orders"
;
SqlDataAdapter adapter1 =
new
SqlDataAdapter(selectQuery1, conn);
conn.Open();
adapter1.Fill(dt1);
conn.Close();
RadGridFilter.DataSource = dt1;
}
RadGridFilter_ItemDataBound(
sender, Telerik.Web.UI.GridItemEventArgs e)
if
(e.Item
is
GridFilteringItem)
GridFilteringItem Fitem = (GridFilteringItem)e.Item;
RadComboBox FilterCombo = (RadComboBox)Fitem.FindControl(
);
FilterCombo.DataSource = dt1;
FilterCombo.DataTextField =
FilterCombo.DataValueField =
FilterCombo.DataBind();
FilterCombo_SelectedIndexChanged(
o, RadComboBoxSelectedIndexChangedEventArgs e)
filterExpression;
filterExpression =
"([OrderID] = '"
+ e.Value +
"')"
RadGridFilter.MasterTableView.FilterExpression = filterExpression;
RadGridFilter.MasterTableView.Rebind();