Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
RadGrid1_ItemCreated(
object
sender, Telerik.Web.UI.GridItemEventArgs e)
{
if
(e.Item
is
GridFilteringItem)
GridFilteringItem filterItem = (GridFilteringItem)e.Item;
(filterItem[
"UniqueName"
].Controls[0]
as
TextBox).Attributes.Add(
"onkeyup"
,
"CharacterCheck(this, event)"
);
}
function
CharacterCheck(text, e)
var
regx, flg;
regx = /[^0-9a-zA-Z
''
]/
flg = regx.test(text.value);
(flg)
val = text.value;
val = val.substr(0, (val.length) - 1)
text.value = val;