Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a radio menu items in column menu #1614

Closed
wattsbn opened this issue Sep 26, 2014 · 2 comments
Closed

Allow a radio menu items in column menu #1614

wattsbn opened this issue Sep 26, 2014 · 2 comments
Assignees
Milestone

Comments

@wattsbn
Copy link
Contributor

wattsbn commented Sep 26, 2014

In several of my grids i need to show radio options in the column menu. In the 2.x version I am creating my own column menu using the headerCellTemplate. I can do the same in 3.0, but it would nice to be able to use the built-in one instead of having to create my own. I would expect this options to be viewed as one menu item in the column config and be shown in the UI as a label and several radio menu items. The sorting menu items seem to show their state (whether that sort is applied or not), but that feature doesn't seem to be available to custom menu items (or its not documented).

An alternative solution would be to be able to specify a menuItemTemplate for each menu item in the column menu. This would allow for greater flexiblity and allow me to add radio menu items yet still use the built-in column menu.

@c0bra c0bra added this to the Future milestone Sep 26, 2014
@wattsbn
Copy link
Contributor Author

wattsbn commented Sep 26, 2014

@c0bra I found that I can specify an active function for a menu item to get it to display like the sort functions. However, I did not see that feature documented anywhere. If this is truly a feature and not just a hack that works for now and probably not later, then it solves my problem.

@PaulL1 PaulL1 self-assigned this Sep 26, 2014
@PaulL1
Copy link
Contributor

PaulL1 commented Sep 26, 2014

It is a permanent feature, the documentation requires an update. I'll look at the documentation and the item by item enabling.

PaulL1 added a commit to PaulL1/ng-grid that referenced this issue Sep 27, 2014
…w disableColumnMenu

Also allows disabling the hide column menu option.  Includes
new e2e test for 303 tutorial.
PaulL1 added a commit that referenced this issue Sep 27, 2014
Fix(columnMenu): #1603 #1604 #1614 allow disableColumnMenu
@PaulL1 PaulL1 closed this as completed Sep 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants