This is a migrated thread and some comments may be shown as answers.

Problem deleting with grid control

2 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eduardo
Top achievements
Rank 1
Eduardo asked on 29 Jan 2017, 07:34 AM

Hi, i have a problem to fire the delete event using a GridButtonColumn with ConfirmDialogType="RadWindow", it show the dialog but when I click ok button it only close the window but don't invoke the delete event on the server, if I change it to ConfirmDialogType="Classic" it works ok.

 

here is the implementation

 

<form id="form1" runat="server">
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Material">
        </telerik:RadSkinManager>
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">
            <telerik:RadGrid ID="RadGridFAQs" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" OnNeedDataSource="RadGridFAQs_NeedDataSource" PageSize="5" RenderMode="Lightweight" OnDeleteCommand="RadGridFAQs_DeleteCommand">
                <pagerstyle mode="NextPrevAndNumeric" position="Bottom" pagesizecontroltype="None" alwaysvisible="True"></pagerstyle>
 
                <groupingsettings collapsealltooltip="Collapse all groups" />
                <mastertableview clientdatakeynames="QuestionID" datakeynames="QuestionID" hierarchyloadmode="Client">
                                    <rowindicatorcolumn visible="False">
                                    </rowindicatorcolumn>
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Question" HeaderText="Pregunta">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Score" HeaderText="Calificación">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Section" HeaderText="Sección">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Active" HeaderText="Activo">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridButtonColumn CommandName="Delete" ConfirmText="¿Esta seguro que desea eliminar la pregunta?" FilterControlAltText="Filter column column" UniqueName="column" ConfirmDialogType="RadWindow" ConfirmTitle="Eliminar">
                                        </telerik:GridButtonColumn>
                                    </Columns>
                                    <PagerStyle PageSizeControlType="None" AlwaysVisible="True" />
                                </mastertableview>
                <filtermenu rendermode="Lightweight">
                                </filtermenu>
                <headercontextmenu rendermode="Lightweight">
                                </headercontextmenu>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
    </form>

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 31 Jan 2017, 01:13 PM
I'm seeing the same behavior in 2017 R1 using latest Edge browser on Windows 10. RadWindow dialog does not invoke the command when I confirm OK, but the Classic dialog does.
0
Milena
Telerik team
answered on 01 Feb 2017, 12:54 PM
Hello,

We are aware of this issue and a fix for it will be provided in our next release - R1 2017 SP1. 
Meantime, you can set ConfirmDialogType="Classic" as a possible workaround.

Please excuse us for any inconvenience caused.

Regards,
Milena
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Eduardo
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Milena
Telerik team
Share this question
or