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.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
"server"
OnItemCreated
"RadGrid1_ItemCreated"
AllowFilteringByColumn
"true"
>
MasterTableView
CommandItemDisplay
"Top"
DataKeyNames
"EmployeeID"
Columns
telerik:GridBoundColumn
DataField
"FirstName"
UniqueName
HeaderText
</
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(!Page.IsPostBack)
(e.Item
is
GridFilteringItem)
GridFilteringItem fltItem = e.Item
as
GridFilteringItem;
foreach
(GridColumn column
in
RadGrid1.Columns)
TextBox box = fltItem[column.UniqueName].Controls[0]
TextBox;
box.Attributes.Add(
"onkeypress"
,
"doFilter(this,event)"
);
}
function
doFilter(sender, eventArgs)
((eventArgs.keyCode == 13) && (sender.value !=
""
))
eventArgs.cancelBubble =
true
;
eventArgs.returnValue =
false
(eventArgs.stopPropagation)
eventArgs.stopPropagation();
eventArgs.preventDefault();
var
masterTableView = $find(
"<%= RadGrid1.ClientID %>"
).get_masterTableView();
index = sender.parentNode.cellIndex;
//index of the current column
columns = masterTableView.get_columns();
uniqueName = columns[index].get_uniqueName();
masterTableView.filter(uniqueName, sender.value, Telerik.Web.UI.GridFilterFunction.Contains);