1. #51
    Ext JS Premium Member paubach's Avatar
    Join Date
    Jan 2008
    Location
    Plasencia, Spain
    Posts
    337
    Vote Rating
    0
    paubach is on a distinguished road

      0  

    Default


    Quote Originally Posted by walker_cn View Post
    great Plug-In, Thanks for sharing.

    But there is a problem. I test in your demo, For any row, when the expander is in expanded state, and i try to click the column title, the grid sort data, and the expander panel just disappears and will not be there anymore.

    Sorry for my english, you can test your demo:
    1. click a row, to expand the expander panel
    2. click column title to sort
    3. click same row, but the expander panel never appear

    It happens to me too. Adding the fix, when sorting, the expanded panel disappears, although we can later collapse and expand and it appears again. But it would be great if this wouldn't disappear.

  2. #52
    Sencha User
    Join Date
    Nov 2008
    Posts
    24
    Vote Rating
    0
    Juel is on a distinguished road

      0  

    Default


    The quick fix is to move the call to replaceClass() in expandRow() in RowPanelExpander before beforeExpand(). Then any components which need to read attributes like offsetWidth get reasonable values and can be outlined correctly.
    Hi, I guess I have a similar problem in a different context...

    Code:
    createExpandingRowPanelItems: function(record, rowIndex){
                            var testpanel = new Ext.Panel({
                                    html:'Teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest',
                                    autoScroll:true,
                                    autoWidth:true
                            });
                            var panelItems = [testpanel];
                            return panelItems;
                    }
    My panel doesn't show a scrollbar and teeest - text gets cut at the right end of the panel.
    I moved replaceClass() from expandRow() to the first line in beforeExpand(), but didn't get any different behaviour.

  3. #53
    Sencha User
    Join Date
    Mar 2010
    Posts
    83
    Vote Rating
    -1
    daiei27 is an unknown quantity at this point

      0  

    Default


    Guess after I posted in this thread I never came back and mentioned I updated the original RowExpander. I don't promise it'll fit everybody's needs, but it can contain all sorts of Ext elements within it without creating memory leaks and I haven't had any of the issues mentioned in this thread.

    You can give it a try to see if it fits your purposes better:
    http://www.sencha.com/forum/showthre...D-April-5-2010

  4. #54
    Ext JS Premium Member paubach's Avatar
    Join Date
    Jan 2008
    Location
    Plasencia, Spain
    Posts
    337
    Vote Rating
    0
    paubach is on a distinguished road

      0  

    Default


    Quote Originally Posted by daiei27 View Post
    Guess after I posted in this thread I never came back and mentioned I updated the original RowExpander. I don't promise it'll fit everybody's needs, but it can contain all sorts of Ext elements within it without creating memory leaks and I haven't had any of the issues mentioned in this thread.

    You can give it a try to see if it fits your purposes better:
    http://www.sencha.com/forum/showthre...D-April-5-2010
    The same error that I posted about RoxPanelExpander happens with RowExpander. But in that case 1st change (sorting or anything) makes the content of the expander to disappear leaving an empty box, and 2nd change the box disappears. Everything very weird...

  5. #55
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,656
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    I updated first post code and added support for stateful grid, added known issues from this thread and 2 new methods: expandAll and collapseAll
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  6. #56
    Sencha User
    Join Date
    Nov 2008
    Posts
    24
    Vote Rating
    0
    Juel is on a distinguished road

      0  

    Default


    Hi steffenk, thats cool - I tried the new RowPanelExpander but still have this issue and also sorting doesn't seem to work as expected, like paubach stated before... did you test that in detail? Otherwise I do something completely wrong

  7. #57
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,656
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    Hi,

    i will look to the scroll issue. I use it stateful and with different types of containers. This is built in with TYPO3 4.5beta3 and works pretty well.

    sample_typo3.png
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  8. #58
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,656
    Vote Rating
    6
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    Just an update: with remote grid and stateful it works after reload/sort. problem is the local mode, i'm currently work on a solution.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  9. #59
    Sencha User
    Join Date
    Nov 2008
    Posts
    24
    Vote Rating
    0
    Juel is on a distinguished road

      0  

    Default


    I used it with a local store and not stateful, that made the difference probably... looking forward to the local version ;-)

  10. #60
    Ext JS Premium Member pavanextjs's Avatar
    Join Date
    Jul 2008
    Posts
    118
    Vote Rating
    2
    pavanextjs is on a distinguished road

      0  

    Question Problem with CheckboxSelectionModel inside the Nested Grid of RowPanelExpander

    Problem with CheckboxSelectionModel inside the Nested Grid of RowPanelExpander


    I have this strange problem with the CheckboxSelectionModel inside the nested grid of RowPanelExpander.

    Problem is explained in this Link.

    Any ideas & suggestions ?