[OPEN] [#813] GridPanel Grouping Menu issue

  1. #1

    [OPEN] [#813] GridPanel Grouping Menu issue

    Hi,

    When you add menu command into Grouping Header like in the example:

    https://examples3.ext.net/#/GridPane...Group_Command/

    then if you expand and collapse group headers (not the first one), I think the layout is "playing tricks". The menu is added later causing "not desired" effect.

    Click image for larger version. 

Name:	grouping-menu-problem.png 
Views:	36 
Size:	41.7 KB 
ID:	24032

    This screen shoot was made during "layout update". In the end everything is fine (except you can clearly see the issue)

    Click image for larger version. 

Name:	grouping-menu-problem-2.png 
Views:	42 
Size:	27.3 KB 
ID:	24033


    Thank you,
    Last edited by Daniil; Jun 25, 2015 at 11:28 AM. Reason: [OPEN] [#813]
  2. #2
    Hi @Matt,

    Apologize for the delay in answering.

    Thank you for reporting that. Logged in GitHub.
    https://github.com/extnet/Ext.NET/issues/813

    Yes, unfortunately, there is a problem. We have to re-render/re-inject commands after each refresh with a small delay and it causes this ugly effect. If we re-render without any delay, it causes other issues.

    The problem originates from the fact the native ExtJS GridPanel doesn't quite support such kind of injections. So far, we were not able to get it working flawlessly.

    But I can recommend an alternative approach - replacing CommandColumn with ImageCommandColumn. Yes, it is not a direct replacement. It will lead to some additional work, but it should not be that difficult for you and, I would say, it is the only solid solution in this situation. Generally speaking, my recommendation would be always use ImageCommandColumn rather than CommandColumn. It is much more lightweight and it behaves significantly better.
  3. #3
    Thank you,

    You are right;
    Unfortunately ImageCommandColumn cannot have drop down menu (or can it have ?)
  4. #4
    Unfortunately ImageCommandColumn cannot have drop down menu (or can it have ?)
    Yes, it is one of the differences comparing with CommandColumn commands.

    But you can define a Menu separately and show it on an image command click.
  5. #5
    Thank you,

    I will try this approach.

Similar Threads

  1. Replies: 2
    Last Post: Jun 25, 2015, 2:08 PM
  2. [CLOSED] GridPanel with grouping and expand/collapse issue
    By ATLAS in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 12, 2014, 3:05 PM
  3. Issue with GridPanel grouping Column
    By rishu in forum 2.x Help
    Replies: 0
    Last Post: Jun 11, 2013, 11:19 AM
  4. GridPanel grouping issue
    By milenios in forum 2.x Help
    Replies: 2
    Last Post: Aug 07, 2012, 6:58 PM
  5. [CLOSED] [1.0] GridPanel issue with Grouping and Column Alignment
    By schimkem in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 30, 2010, 2:09 PM

Tags for this Thread

Posting Permissions