Results 1 to 2 of 2

Thread: Reorder a headergroup in grid

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    10

    Question Reorder a headergroup in grid

    Hi,

    i try to fix the problem with reordering column and have headergroups. First i create a grid with reordable columns. I set a headergroup on two of these columns (colspan 2)

    columnModel.addHeaderGroup(0, 2, new HeaderGroupConfig("My headergroup name", 1, 2));

    Now i reorder the columns, plaese take look at the 3 screen shots (before-during-after). I do not want to break the headergroups, how can i do that? I already try clear the groups and set them again...but the clear() method is not allowed

    columnModel.getHeaderGroups().clear(); <-- not allowed

    Please help

    before.pngduring.pngafter.png

  2. #2
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    10

    Default

    Ok, i solved it. Every time i reorder the colums (addColumnMoveHandler), i mus create create the columns and headergroups again and reconfigure the grid (grid.getEditableGrid().reconfigure).

    Now i have the problem to move (reorder) the header groups in the grid. Currently i can only reorder the columns with no header group. It is possible to move the whole header group?

Posting Permissions

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