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
static
string
value =
.Empty;
protected
void
RadGrid1_ItemCommand(
object
sender, Telerik.Web.UI.GridCommandEventArgs e)
{
if
(e.CommandName == RadGrid.InitInsertCommandName)
e.Canceled =
true
;
e.Item.OwnerTableView.InsertItem();
GridEditableItem insertedItem = e.Item.OwnerTableView.GetInsertItem();
GridEditFormItem editFormItem = insertedItem
as
GridEditFormItem;
TextBox txt = (TextBox)insertedItem[
"UniqueName"
].Controls[0];
txt.Text = value;
}
RadGrid1_ItemDataBound(
sender, GridItemEventArgs e)
(e.Item
is
GridDataItem)
GridDataItem ditem = (GridDataItem)e.Item;
(ditem.ItemIndex == 0)
value = ditem[
].Text;