Hi
In a RadGrid I created a FormTemplate for the EditFormSettings. This looks like following:
There we have the three buttons for update, insert and cancel. In the code behind I have...
...but the event just doesn't get fired. I made it all over the gui. I have no idea what went wrong.
(Since I had several errors before about invalid postback or callback arguments I switched off EventValidation. Thought this probably has to be mentioned..)
Thanks in advance for some help
Regards
Roman
PS: Please don't hesitate to tell me if you require further information.
In a RadGrid I created a FormTemplate for the EditFormSettings. This looks like following:
| <telerik:RadGrid ID="PartnerListGrid" runat="server" |
| AllowSorting="True" GridLines="None" Skin="Vista" ShowGroupPanel="True" |
| OnItemDataBound="PartnerListGrid_ItemDataBound" AutoGenerateColumns="False" |
| OnCancelCommand="PartnerListGrid_CancelCommand" |
| oninsertcommand="PartnerListGrid_InsertCommand" |
| onupdatecommand="PartnerListGrid_UpdateCommand"> |
| ... |
| <EditFormSettings EditFormType="Template"> |
| <FormTableItemStyle Width="100%"></FormTableItemStyle> |
| <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle> |
| <FormStyle Width="100%" BackColor="white"></FormStyle> |
| <EditColumn UniqueName="EditCommandColumn1"> |
| </EditColumn> |
| <FormTemplate> |
| <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" |
| style="border-collapse: collapse"> |
| <tr>...</tr> |
| <tr>...</tr> |
| <tr> |
| <td align="right" colspan="2"> |
| <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update"></asp:Button> |
| <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert"></asp:Button> |
| <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> |
| </td> |
| </tr> |
| </table> |
| </FormTemplate> |
| </EditFormSettings> |
There we have the three buttons for update, insert and cancel. In the code behind I have...
| protected void PartnerListGrid_CancelCommand(object source, GridCommandEventArgs e) |
| { |
| PartnerListGrid.MasterTableView.ClearEditItems(); |
| } |
...but the event just doesn't get fired. I made it all over the gui. I have no idea what went wrong.
(Since I had several errors before about invalid postback or callback arguments I switched off EventValidation. Thought this probably has to be mentioned..)
Thanks in advance for some help
Regards
Roman
PS: Please don't hesitate to tell me if you require further information.