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
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
RadGrid1_ItemCreated(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
GridEditableItem item = e.Item
as
GridEditableItem;
GridHTMLEditorColumnEditor editor = (GridHTMLEditorColumnEditor)item.EditManager.GetColumnEditor(
"UniqueName"
);
TableCell cell = (TableCell)editor.Editor.Parent;
RegularExpressionValidator validate =
new
RegularExpressionValidator();
validate.ControlToValidate = editor.Editor.ID;
validate.ValidationExpression=
"Expression"
;
validate.ErrorMessage =
"Error Message"
cell.Controls.Add(validate);
}