Cannot use drag/drop between GroupPanel and FlexGrid that uses column groups

Posted by: matt_baker on 2 November 2020, 3:26 pm EST

    • Post Options:
    • Link

    Posted 2 November 2020, 3:26 pm EST

    I need to be able to use the GroupPanel with a FlexGrid that has grouped columns. Right now the drag/drop is broken for columns with no sub-columns (which is my use case).

    See attached ZIP of modified demo from https://www.grapecity.com/wijmo/demos/Grid/Columns/ColumnGroups/purejs. The simple columns like “Name” should be group able with the GroupPanel. You can manually set the groupings via the grid’s collectionview. But the drag/drop functionality is missing.

    Is there a solution or workaround to get non-grouped columns (columns with no sub-columns underneath) to be group able using the GroupPanel.

    Grid_Columns_ColumnGroups_JavaScript.zip

  • Posted 3 November 2020, 2:36 am EST

    Hi Matt,

    I have replied to your query on the support one portal. For reference, I am pasting the response here also:

    Whenever column groups are created, the columns are not draggable by default. You can change this by setting the allowDragging property of the columns to true after creating the FlexGrid:

    theGrid.columns.forEach(c => c.allowDragging = true);
    

    You can refer to the sample attached.

    Regards,

    Ashwin

    dragging.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels