Results 1 to 3 of 3

Thread: How to ensure componentLayoutCounter correctly set ?

  1. #1
    Sencha User
    Join Date
    Sep 2014
    Posts
    21

    Default How to ensure componentLayoutCounter correctly set ?

    I am adding multiple grid(cellplugin in each grid) in tab panel and displaying it. however when I click on cell for editing it doesn't display text area.

    I have configured editor as text area also.
    I tried to debug plugin and found issue(Editing.js) in below code -

    Code:
    startEdit: function(record, columnHeader) {
            var me = this,
                context,
                layoutView = me.grid.lockable ? me.grid : me.view;
                // The view must have had a layout to show the editor correctly, 
                //  defer until    that time.
                // In case a grid's startup code invokes editing immediately.
                if (!layoutView.componentLayoutCounter) {
                layoutView.on({
                    boxready: Ext.Function.bind(me.startEdit, me, [record, columnHeader]),
                    single: true
                });
                return false;
               ....
               ....
    
            }

    Issue is componentLayoutCounter have value is 0 because of that if block gets executed and false is returned which stops editing.

    My query is how we can ensure that componentLayoutCounter value always set correctly ?

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    I'm not sure I follow just yet. Can you post a simple test case at https://fiddle.sencha.com demonstrating the issue you're seeing?

    Also, what version of ExtJS are you working with?
    And what OS / browser version?

  3. #3
    Sencha User
    Join Date
    Sep 2014
    Posts
    21

    Default

    Hi slemmon

    Sorry for delay in reply. I am not facing this issue now.
    I believe it could be due to not handling dynamic tab addition logic carefully. Since I corrected it now.
    I can edit the cell also.

    Thanks.

Posting Permissions

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