Custom column group layout with column group reordering

6 posts, 0 answers
  1. Eric
    Eric avatar
    8 posts
    Member since:
    Sep 2011

    Posted 31 Aug 2012 Link to this post

    I was wanting to know if it is possible to have a column group layout like below and be able to drag the column group as a whole to reorder the columns while disabling reorder for columns within the group. If it is can you provide an example?

    |         GROUP HEADER      |                         |                         |                          |
    |                                           |    COLUMN 3   |   COLUMN 4     |   COLUMN 5     |
    |  COLUMN 1  |  COLUMN 2 |                         |                         |                          |

    Basically I want to have the two grouped columns to behave as one for header purposes but two for data entry purposes with the caveat that column 1 and 2's headers grow and shrink with the data for the column as they do normally.
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 03 Sep 2012 Link to this post

    Hi Eric ,

    For the time being RadGridView does not yet support batch reordering of more than one column via dragging a common header.

    Greetings,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Eric
    Eric avatar
    8 posts
    Member since:
    Sep 2011

    Posted 04 Sep 2012 Link to this post

    Ok, is the proposed layout at least possible? If it is can you provide an example?

    Thanks,
    Eric
  4. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 07 Sep 2012 Link to this post

    Hi Eric ,

    Yes the layout is possible . I am attaching a small runnable project that would render the exact layout you have described.

    All the best,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Eric
    Eric avatar
    8 posts
    Member since:
    Sep 2011

    Posted 07 Sep 2012 Link to this post

    Thank you for the example however the layout isn't exactly what I was asking for.

    I'm not wanting to do the standard column group header. I want the Group header for columns 1 and 2 to be inline with columns 3,4 and 5 and for those columns to not have a group header at all.

    So the result is columns 1 and 2 have a header but 3, 4 and 5 do not and the over grid header hight is not increased.

    Please let me know if you have questions or need additional information.
  6. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 07 Sep 2012 Link to this post

    Hello Eric,

    I understand . Unfortunately this is as close as we can get.

    Still there is an alternative I should mention - have you thought of showing data form columns 1 and 2 in a single column ( with a templated cell to contain two TextBlocks) ?

    Regards,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top