Skip to content

Combine Selection module with custom headerCellTemplate on other columns #5601

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

Closed
Pinois opened this issue Aug 4, 2016 · 1 comment
Closed

Comments

@Pinois
Copy link

Pinois commented Aug 4, 2016

Hi everyone,

I'm having a problem with the "selection" feature, and the headerCellTemplate defined on the gridOptions.

When I include the selection module in my grid, all the headerCellTemplates that I defined for my previous columns are ignored.

I guess it's linked to the the new first column that the selection module automaticaly included.
When I set "enableRowHeaderSelection" to false, all the headerCellTemplates are okay.
Then, when I disable all my headerCellTemplates, and that I set a classic DisplayName, it work aswell.

Does anyone have that problem?

All I want is to have the new column with the icons for selecting rows, combined with my other headerCellTemplates.

Is it possible? Is there a work-around?

Thank you! :)

(i'm running ui-grid 3.1.1, with ui.grid.autoResize and ui.grid.selection)

@Pinois
Copy link
Author

Pinois commented Aug 4, 2016

Ok it seems that the problem is that I wrote my headerCelltemplate in another html file. (like this : headerCellTemplate: "tpl/myHeader.html")

When I copy paste my code directly in the gridOption definition, the headerCellTemplate is connected. (like this : headerCellTemplate: "<p>Hello World</p>")
it's ugly, but it works

Hope there will be a fix for this in the future :-)

falsyvalues added a commit to falsyvalues/ui-grid that referenced this issue Oct 11, 2017
…r-cell`, `filter`.

Fixes issues angular-ui#4744, angular-ui#5717, angular-ui#5115, angular-ui#5196, angular-ui#5712, angular-ui#5260, angular-ui#5196, angular-ui#4851, angular-ui#4514, angular-ui#5601

For URL-based templates we need to be sure that content arrived before `$compile` and `$elm.append` call.
mportuga pushed a commit that referenced this issue Oct 31, 2017
…r-cell`, `filter`.

Fixes issues #4744, #5717, #5115, #5196, #5712, #5260, #5196, #4851, #4514, #5601

For URL-based templates we need to be sure that content arrived before `$compile` and `$elm.append` call.
vishalnarewade pushed a commit to vishalnarewade/ui-grid that referenced this issue Nov 6, 2017
…r-cell`, `filter`.

Fixes issues angular-ui#4744, angular-ui#5717, angular-ui#5115, angular-ui#5196, angular-ui#5712, angular-ui#5260, angular-ui#5196, angular-ui#4851, angular-ui#4514, angular-ui#5601

For URL-based templates we need to be sure that content arrived before `$compile` and `$elm.append` call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants