I have an Telerik grid view with Automatic insert update delete ..but these events didnt call when i clicked to thier releted buttons
as following :
Protected Sub RadGrid1_ItemInserted(ByVal source As Object, ByVal e As GridInsertedEventArgs) Handles
If e.Exception IsNot Nothing
e.ExceptionHandled =
e.KeepInInsertMode =
DisplayMessage(
True, "Employee cannot be inserted. Reason: " & Convert
DisplayMessage(
False, "Employee inserted"
End
Dim gridEditFormItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem
Dim dropDownList As DropDownList = DirectCast(gridEditFormItem.FindControl("ddlTOC"), DropDownList
Dim TextBox As TextBox = DirectCast(gridEditFormItem.FindControl("TextBox8"), TextBox
End
and this is the source code :
<telerik:RadPageView ID="RadPageView2" runat="server">
<telerik:RadGrid ID="RadGrid1" runat="server" CssClass="RadGrid" GridLines="None"
AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"
ShowStatusBar="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
AllowAutomaticUpdates="True" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"
OnItemUpdated="RadGrid1_ItemUpdated" OnItemCommand="RadGrid1_ItemCommand" OnPreRender="RadGrid1_PreRender">
<MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="الأجراء">
any help i will be grateful