I have the following in my columns tag of my grid, however, nothing happens when I click ok in the confirm window. The grid doesnt delete the row and the datasource doesnt either. Is there something else needed to wire this up when using automatic CRUD and an entity datasource?
<telerik:GridButtonColumn CommandName="Delete" Text="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delte this?" ConfirmTitle="Are you sure?" UniqueName= "DeleteColumn"></telerik:GridButtonColumn>
<telerik:RadGrid ID="rgRequirements" runat="server" AllowAutomaticDeletes="True" |
OnItemCommand="RadGrid1_ItemCommand" OnItemInserted="RadGrid1_ItemInserted" |
AllowAutomaticInserts="True" AllowAutomaticUpdates="True" |
AutoGenerateColumns="False" OnItemUpdated="RadGrid1_ItemUpdated" OnItemDeleted="RadGrid1_ItemDeleted" |
DataSourceID="edsRequirement" GridLines="None" Width="550px"> |
<MasterTableView AutoGenerateColumns="False" DataSourceID="edsRequirement" DataKeyNames="requirementID" EditMode="PopUp" CommandItemDisplay="Top"> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<commanditemsettings addnewrecordtext="Add new Requirement" /> |
<Columns> |
<telerik:GridBoundColumn DataField="requirement" HeaderText="Support Requirement" ItemStyle-Width="300" SortExpression="requirement" UniqueName="requirement"> |
<ItemStyle Width="300px"></ItemStyle> |
</telerik:GridBoundColumn> |
<telerik:GridEditCommandColumn ButtonType="LinkButton" EditText="Edit" HeaderStyle-Width="30" /> |
<telerik:GridButtonColumn CommandName="Delete" Text="Delete" ConfirmDialogType="RadWindow" ConfirmText="Delte this?" ConfirmTitle="Are you sure?" UniqueName= "DeleteColumn"></telerik:GridButtonColumn> |
</Columns> |
<EditFormSettings EditFormType="Template" InsertCaption="New Requirement" CaptionFormatString="Requirement" |
PopUpSettings-Modal="true" PopUpSettings-Height="200"> |
<FormTemplate> |
<EditColumn UniqueName="EditCommandColumn1"></EditColumn> |
<div class="formContent"> |
<telerik:RadTextBox runat="server" ID="tbCreated" Text='<%#Bind( "dateCreated") %>' Visible="false"></telerik:RadTextBox> |
<telerik:RadTextBox runat="server" ID="tbModified" Text='<%#Bind( "dateModified") %>' Visible="false"></telerik:RadTextBox> |
Requirement: <cc1:HelpToolTip ID="HelpToolTip3" runat="server" HelpNode="Support Requirement"/><br /> |
<telerik:RadTextBox runat="server" ID="requirement" Text='<%#Bind( "requirement") %>' |
Width="280px" Rows="5" TextMode="MultiLine"/> |
<asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="requirement" Text="*" Display="Dynamic"/> |
</div> |
<div class="clear"/> |
<div style="float:right;padding:10px;"> |
<asp:Button ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' |
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'> |
</asp:Button> |
<asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"> |
</asp:Button> |
</div> |
<div class="clear"/> |
</FormTemplate> |
</EditFormSettings> |
</MasterTableView> |
<ClientSettings> |
<ClientEvents OnPopUpShowing="PopUpShowing" /> |
</ClientSettings> |
</telerik:RadGrid> |
<asp:EntityDataSource ID="edsRequirement" runat="server" |
ConnectionString="name=LSTDev_Entities" DefaultContainerName="LSTDev_Entities" |
EnableDelete="True" EnableInsert="True" EnableUpdate="True" |
EntitySetName="FormsLDPRequirement"> |
</asp:EntityDataSource> |