Too much recursion (Issue in Two Grids Example V2.5)

  1. #1

    Too much recursion (Issue in Two Grids Example V2.5)

    Hi. I have been using the example Two Grids (Ver 2.5) and received the following error once I add some items to Gridpanel2 and then remove them using the button, and then trying to re-add some. Gridpanel1 gets hanged as soon as I start selecting the items and the JS error which I get was "Too many recursion" pointing to main Ext JS class. Is this a bug in v2.5, cause I tried 3.1 example and V1 example, and seems to work fine. But in V2.5 even in the examples the same issue rises.

    Thank you
    Hahsm
  2. #2
    Hi @hahsm,

    Reproduced. Please try to replace the add function with:
    add: function (source, destination) {
        source = source || GridPanel1;
        destination = destination || GridPanel2;
        if (source.selModel.hasSelection()) {
            var records = source.selModel.getSelection(),
                i, len;
    
            source.store.remove(records);
                        
            for (i = 0, len = records.length; i < len; i++) {
                destination.store.add(records[i]);
            }
        }
    }

Similar Threads

  1. [CLOSED] To much recursion error from dynamically created Form
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 11, 2011, 3:09 PM
  2. Replies: 1
    Last Post: Jul 19, 2010, 6:36 PM
  3. Two Grids get value
    By JsonTerre in forum 1.x Help
    Replies: 0
    Last Post: Mar 09, 2009, 11:04 PM
  4. DnD Between 2 Grids
    By davidhoyt in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 13, 2009, 2:02 AM
  5. [CLOSED] Too much recursion error
    By sz_146 in forum 1.x Help
    Replies: 2
    Last Post: Nov 07, 2008, 10:30 AM

Posting Permissions