Creating all events and setting breakpoints, you will notice, when creating the first entry by clicking on "Insert" ("Einfügen") it will first call the ItemCommand-Event with e.CommandName = "PerformInsert", but then it will NOT enter the InsertCommand event. Just create the blank events to this example and set break points:
<asp:UpdatePanel ID="upPrices" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<telerik:RadGrid ID="trgPrices" runat="server" AllowPaging="true" Culture="de-DE"
CssClass="RadGrid" AllowSorting="False" AutoGenerateColumns="false" ShowStatusBar="true" PageSize="20"
OnNeedDataSource="trgPrices_NeedDataSource"
OnItemCreated="trgPrices_ItemCreated"
OnItemDataBound="trgPrices_ItemDataBound"
OnItemCommand="trgPrices_ItemCommand"
OnEditCommand="trgPrices_EditCommand"
OnInsertCommand="trgPrices_InsertCommand"
OnUpdateCommand="trgPrices_UpdateCommand"
OnCancelCommand="trgPrices_CancelCommand"
OnDeleteCommand="trgPrices_DeleteCommand">
<MasterTableView DataKeyNames="ID" CommandItemDisplay="Top">
<CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="false"></CommandItemSettings>
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn" EditText="Bearbeiten">
<HeaderStyle Width="20px" />
</telerik:GridEditCommandColumn>
<telerik:GridNumericColumn UniqueName="HighestQuantity" DataField="HighestQuantity" DataType="System.Int32" HeaderText="Anzahl" DefaultInsertValue="999999" MaxLength="6" NumericType="Number" />
<telerik:GridNumericColumn UniqueName="UnitPrice" DataField="UnitPrice" DataType="System.Double" HeaderText="Stückpreis" DefaultInsertValue="0" DecimalDigits="2" NumericType="Currency" />
<telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn" CommandName="Delete" Text="Löschen">
<HeaderStyle Width="20px" />
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings>
<EditColumn ButtonType="LinkButton" UniqueName="EditCommandColumn" InsertText="Einfügen" UpdateText="Speichern" CancelText="Abbrechen" />
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
What can I do?
<asp:UpdatePanel ID="upPrices" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<telerik:RadGrid ID="trgPrices" runat="server" AllowPaging="true" Culture="de-DE"
CssClass="RadGrid" AllowSorting="False" AutoGenerateColumns="false" ShowStatusBar="true" PageSize="20"
OnNeedDataSource="trgPrices_NeedDataSource"
OnItemCreated="trgPrices_ItemCreated"
OnItemDataBound="trgPrices_ItemDataBound"
OnItemCommand="trgPrices_ItemCommand"
OnEditCommand="trgPrices_EditCommand"
OnInsertCommand="trgPrices_InsertCommand"
OnUpdateCommand="trgPrices_UpdateCommand"
OnCancelCommand="trgPrices_CancelCommand"
OnDeleteCommand="trgPrices_DeleteCommand">
<MasterTableView DataKeyNames="ID" CommandItemDisplay="Top">
<CommandItemSettings ShowAddNewRecordButton="true" ShowRefreshButton="false"></CommandItemSettings>
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn" EditText="Bearbeiten">
<HeaderStyle Width="20px" />
</telerik:GridEditCommandColumn>
<telerik:GridNumericColumn UniqueName="HighestQuantity" DataField="HighestQuantity" DataType="System.Int32" HeaderText="Anzahl" DefaultInsertValue="999999" MaxLength="6" NumericType="Number" />
<telerik:GridNumericColumn UniqueName="UnitPrice" DataField="UnitPrice" DataType="System.Double" HeaderText="Stückpreis" DefaultInsertValue="0" DecimalDigits="2" NumericType="Currency" />
<telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn" CommandName="Delete" Text="Löschen">
<HeaderStyle Width="20px" />
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings>
<EditColumn ButtonType="LinkButton" UniqueName="EditCommandColumn" InsertText="Einfügen" UpdateText="Speichern" CancelText="Abbrechen" />
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
</ContentTemplate>
</asp:UpdatePanel>
What can I do?