Problem deleting with grid control

3 posts, 0 answers
  1. Eduardo
    Eduardo avatar
    1 posts
    Member since:
    Jan 2017

    Posted 29 Jan 2017 Link to this post

    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. Paul
    Paul avatar
    49 posts
    Member since:
    Dec 2008

    Posted 31 Jan 2017 in reply to Eduardo Link to this post

    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.
  3. Milena
    Admin
    Milena avatar
    257 posts

    Posted 01 Feb 2017 Link to this post

    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.
Back to Top