[CLOSED] RowEditor and Listener CancelEdit

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] RowEditor and Listener CancelEdit

    HI, in v2.0 the property CancelEdit and AfterEdit are no longer supported ?
    <ext:RowEditor ID="RowEditor1" runat="server">
            <Listeners>
                <CancelEdit Handler="deleteEmpty()" />
                <AfterEdit Handler="deleteEmpty()" />
            </Listeners>
        </ext:RowEditor>
    I did a search in the changelog, but have not found anything about it.

    How do I trap the event of the cancel button for executing an Handler ?
    For the button Save, use the validation, but for the cancel I do not know how to do.

    Thanks
    Aurelio
    Last edited by Daniil; Mar 23, 2012 at 4:52 PM. Reason: [CLOSED]
  2. #2
    Hi, ok i override with this code:

     Ext.override(Ext.grid.plugin.RowEditing, {
                    cancelEdit: function () {
                        var me = this;
    
                        if (me.editing) {
                            me.getEditor().cancelEdit();
                            me.callParent(arguments);
                            this.fireEvent('canceledit', this.context);
                        }
                    }
                });
    If this is the solution close the post.
    Thanks
    Aurelio
  3. #3
    Hi,

    Just to clarify: there is the RowEditing plugin instead on the RowEditor one in Ext.NET v2.

    And yes, the CancelEdit event was missed, we have added it. Please update from SVN.

    Regarding to the AfterEdit event - it has been renamed to Edit.

    Thanks for the report.
  4. #4
    HI, Daniil,
    ,I'm sorry You are right, I wrote the code without specifying who was of 1.2.

    Thanks for help.
    Aurelio
  5. #5
    No problem.

    We have added the CancelEdit event for the CellEditing plugin as well.
  6. #6
    Hello

    following this thread, as the downloadable beta version in nuget is always dated from March 12, will you release a new beta update for non registered users?

    I move my code from V1.3 to V2 and I have a lot of issues with thing renamed or removed.

    Thanks.

Similar Threads

  1. [CLOSED] RowEditor CancelEdit from CodeBehind
    By dheeraj_us in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 07, 2012, 2:09 PM
  2. [CLOSED] [1.0] RowEditor Resizing
    By alliedwallet.com in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 29, 2012, 12:26 PM
  3. [CLOSED] RowEditor Validation
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 20, 2011, 12:21 PM
  4. Replies: 7
    Last Post: Jun 15, 2011, 7:34 PM
  5. [CLOSED] Need RowEditor ValidateEdit Listener and DirectEvent Example
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 24, 2010, 3:28 AM

Posting Permissions