RadGridView ColumnGroup

10 posts, 0 answers
  1. Mike
    Mike avatar
    9 posts
    Member since:
    Apr 2009

    Posted 28 May 2009 Link to this post

    Hi again
    (A barrage of questions today!)

    When creating a custom column grouping via ColumnGroupsViewDefinition, I noticed a few things that puzzled me:-

    -I could no longer move columns around or use the columnchooser
    -I'm unable to provide different right-click context menus for data and "sub" header cells.  (Subgroup headings they do not register as GridHeaderCellElement or GridHeaderRowElement but appear to be GridDataCellElement)?
    -I can only "pin" the main headings

    I suspect a lot of that is by design, but if there are any avenues that I could use to enable a user to select what columns or even columngroups that they wish to see without losing the nice multi-row headings, it would be great!

    Regards,
    Mike

  2. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 29 May 2009 Link to this post

    Hi Mike,

    Thank you for contacting us.

    Regarding your questions:

    1. Yes, this functionality is limited when using column groups and html views. We plan to implement it in one of our upcoming releases.

    2. Actually, they are GridColumnGroupCellElement elements. You can add you own context menu by handling MouseDown event. We will take your feedback into consideration when developing our future releases.

    3. Yes this is done intentionally. It will become a mess when you pin some cell and the group is not pinned. Please describe what is the exact behavior that you expect in this case. We will appreciate your feedback.

    Should you have any questions, we will be glad to answer.

    Kind regards,
    Jack
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Mike
    Mike avatar
    9 posts
    Member since:
    Apr 2009

    Posted 29 May 2009 Link to this post

    Thanks Jack,

    Regarding question 3, I wasn't looking to pin non heading cells, just to be able to do more with the columns / groups.

    I'd personally like to be able to rearrange columns within each group (as well as show/hide a column chooser of columns that are within the group but may be invisible), and hide/show the groups themselves. I'm pretty sure with the lead on "GridColumnGroupCellElement", I'll be able to implement something that does the basics here.

    Regards,
    Mike
  5. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 30 May 2009 Link to this post

    Hi Mike,

    I understand, thank you for your feedback. We appreciate it and I have updated your Telerik points. If you need further assistance with the context menu, please describe the exact behavior you want to achieve and I will try to find a solution.

    Regards,
    Jack
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Tim Weckx
    Tim Weckx avatar
    4 posts
    Member since:
    Mar 2010

    Posted 25 Mar 2010 Link to this post

    Mike,

    I'm looking for the same functionality. Would you be able to share your solution for having a column chooser while defining a custom ColumnGroupsViewDefintion?

    Any help would be greatly appreciated.

    Thank you,
    Tim
  7. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 29 Mar 2010 Link to this post

    Hello Tim Weckx,

    Currently the column chooser is not available when using the column groups view. We know about this limitation and we plan to implement the feature in one of our upcoming releases. Should you have any other questions, don't hesitate to ask.

    Kind regards,
    Jack
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Mike Renwick
    Mike Renwick avatar
    4 posts
    Member since:
    Jun 2009

    Posted 29 Mar 2010 Link to this post

    Hi Tim,

    My solution didn't extend to the column chooser in the end- the feature I needed to implement most was custom right click menu for data within the grid, which I achieved with some Telerik help.  Besides that being able to build and group columns manually was sufficient.

    Regards,
    Mike

  9. Svett
    Admin
    Svett avatar
    728 posts

    Posted 01 Apr 2010 Link to this post

    Hi Mike Renwick,

    You can subscribe to ContextMenuOpening event where you can add new item if ContextMenuProvider is GridHeaderCellElement. You can use the following code snippet that demonstrates this approach:
    void radGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
    {
        if (e.ContextMenuProvider is GridHeaderCellElement)
        {
            RadMenuItem menuItem = new RadMenuItem("My Item");
            menuItem.Click += new EventHandler(menuItem_Click);
            e.ContextMenu.Items.Add(menuItem);
        }
    }
     
    private void menuItem_Click(object sender, EventArgs e)
    {
        // Your operation here
    }

    If you need further assistance, do not hesitate to write us back.

    Regards,
    Svett
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  10. Jason Parrish
    Jason Parrish avatar
    87 posts
    Member since:
    Sep 2009

    Posted 11 Aug 2011 Link to this post

    Are there near future plans to implement the ability to move columns with in ColumnGroups?  And maybe even move entire ColumnGroups?

  11. Svett
    Admin
    Svett avatar
    728 posts

    Posted 12 Aug 2011 Link to this post

    Hello Jason Parrish,

    The feature request is not implemented yet. If many customers require it, we will increase its priority in our TO DO list. You can vote for it here.

    Kind regards,
    Svett
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready