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_InsertCommand(
object
sender, GridCommandEventArgs e)
{
foreach
(GridItem item
in
RadGrid1.MasterTableView.Items)
if
(item
is
GridEditableItem)
GridEditableItem itm = item
as
GridEditableItem;
itm.Edit =
true
;
}
RadGrid1_ItemCommand(
(e.CommandName ==
"RowClick"
)
e.Item.Edit =
RadGrid1.Rebind();
It worked by subscribing on the pre-render
Private Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender
If _autoedit Then
_autoedit =
False
For Each Item As Telerik.Web.UI.GridItem In RadGrid1.MasterTableView.Items
If TypeOf Item Is GridEditableItem Then
If Item.Cells(2).Text = _OrdersAnd Loc2.SelectedValue.ToString = Item.Cells(8).Text Then
Dim EditableItem As GridEditableItem = DirectCast(Item, GridDataItem)
EditableItem.Edit =
True
RadGrid1.DataBind()
_orders=
""
Exit Sub
End If
Next Item