All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
protected void radDiscounts_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
//only affect columns 6 to the total number of dynamic columns
for (int i = 5; i < e.Item.Controls.Count; i++)
//must first access the cell of the column, then access the textbox within the cell
GridDataItem dataItem = (GridDataItem)e.Item;
GridTableCell cell = (GridTableCell)dataItem.Controls[i];
TextBox txtbx = (TextBox)cell.Controls[0];
txtbx.MaxLength = 2;
}