Results 1 to 6 of 6

Thread: [4.2.1 GA] RowEditing breaks after grid reconfigure

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-10709 in
  1. #1
    Sencha User Daniil's Avatar
    Join Date
    Jun 2010
    Saint-Petersburg, Russia

    Default [4.2.1 GA] RowEditing breaks after grid reconfigure


    Ext version tested:
    • Ext 4.2.1 GA

    Browser versions tested against:
    • Chrome
    • IE9

    DOCTYPE tested against:
    • <!DOCTYPE html>

    • Reconfiguring a grid doesn't reconfigure a RowEditing's RowEditor. It causes a JavaScript error. Please follow a test case.

    Steps to reproduce the problem:
    • Double click any row to start editing
    • Stop editing by Update or Cancel click. No matter you edit something, just needs to get a RowEditor appeared
    • Click the Reconfigure button
    • Resize the Column (dragging its edge by mouse)

    The result that was expected:
    • No error

    The result that occurs instead:
    • A JavaScript error occurs in a RowEditor's syncFieldWidth.

    Uncaught TypeError: Cannot call method 'getMargin' of undefined

    Test Case:

    <!DOCTYPE html>
        <title>RowEditing breaks after grid reconfigure</title>
        <link rel="stylesheet" href="../resources/css/ext-all.css" />
        <script src="../ext-all-dev.js"></script>
        <script src="../extnet-all-debug.js"></script>
            Ext.onReady(function () {
                var grid;
                Ext.create("Ext.button.Button", {
                    renderTo: Ext.getBody(),
                    text: "Reconfigure",
                    handler: function () {
                        //grid.editingPlugin.editor = null; // it helps to remedy the problem
                        grid.reconfigure(, [{ text: "New", dataIndex: "test" }]);
                grid = Ext.create("Ext.grid.Panel", {
                    renderTo: Ext.getBody(),
                    height: 150,
                    width: 300,
                    store: {
                        fields: [{
                            name: "test1"    
                        }, {
                            name: "test2"    
                        }, {
                            name: "test3"    
                        data: [{
                            test1: "1",
                            test2: "2",
                            test3: "3"
                            test1: "4",
                            test2: "5",
                            test3: "6"
                        }, {
                            test1: "7",
                            test2: "8",
                            test3: "9"
                    columns: [{
                        text: "Test1",
                        dataIndex: "test1"
                    }, {
                        text: "Test2",
                        dataIndex: "test2",
                        field: "textfield"
                    }, {
                        text: "Test3",
                        dataIndex: "test3"
                    plugins: {
                        ptype: "rowediting"
    Frameworks and Tools for .NET Developers
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Boise, ID


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Mar 2008

    Default Any update / status?

    Right now I am stuck completely recreating a new grid every time I need to reconfigure it as the only work-around. Tried disabling the offending plugin, removing it and re-adding it, nothing works except completely destroying the grid and recreating it - a far from ideal user experience.

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2013

    Default Any update??

    Is there any update on this? I am having the same issue.


  5. #5
    Sencha Premium User smcguire36's Avatar
    Join Date
    Sep 2007
    Manchester, Connecticut, USA


    I am also having the same issue. I really need a solution to this! IS there a way to remove the rowediting plugin at runtime and re-add it after the reconfigure is complete?

    Stewart McGuire
    Ext JS 2.x, 3.x, 4.x - Advanced User / Sencha Architect 3 - User

  6. #6


    Does this fix apply to CellEditing as well? We don't have access to 4.2.2 so I can't test and confirm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts