This is a migrated thread and some comments may be shown as answers.

RadGridView ColumnGroup

9 Answers 333 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 2
Mike asked on 28 May 2009, 04:29 PM
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

9 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 29 May 2009, 12:38 PM
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.
0
Mike
Top achievements
Rank 2
answered on 29 May 2009, 03:39 PM
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
0
Jack
Telerik team
answered on 30 May 2009, 04:37 PM
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.
0
Tim Weckx
Top achievements
Rank 1
answered on 25 Mar 2010, 06:10 PM
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
0
Jack
Telerik team
answered on 29 Mar 2010, 01:36 PM
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.
0
Mike Renwick
Top achievements
Rank 1
answered on 29 Mar 2010, 02:50 PM
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

0
Svett
Telerik team
answered on 01 Apr 2010, 10:02 AM
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.
0
Jason Parrish
Top achievements
Rank 1
answered on 11 Aug 2011, 04:32 PM
Are there near future plans to implement the ability to move columns with in ColumnGroups?  And maybe even move entire ColumnGroups?

0
Svett
Telerik team
answered on 12 Aug 2011, 02:17 PM
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 >>

Tags
GridView
Asked by
Mike
Top achievements
Rank 2
Answers by
Jack
Telerik team
Mike
Top achievements
Rank 2
Tim Weckx
Top achievements
Rank 1
Mike Renwick
Top achievements
Rank 1
Svett
Telerik team
Jason Parrish
Top achievements
Rank 1
Share this question
or