Skip to content

re-order styles for tree-header-row override #4854

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

Merged
merged 1 commit into from
Dec 14, 2015
Merged

re-order styles for tree-header-row override #4854

merged 1 commit into from
Dec 14, 2015

Conversation

dlgski
Copy link
Contributor

@dlgski dlgski commented Dec 14, 2015

In fix #4760 an override was introduced to allow clicking on the tree-expansion when row selection is on.

The generated code with the grid options:

enableRowSelection: true,
enableFullRowSelection: true,
enableRowHeaderSelection: false,

render each cell with the following classes:

class="ui-grid-cell ng-scope ui-grid-disable-selection ui-grid-coluiGrid-0007 ui-grid-row-header-cell"

so, the order of these classes needs to have ui-grid-cell first, followed by ui-grid-disable-selection then ui-grid-row-header-cell in order for this override to work

@AgDude
Copy link
Contributor

AgDude commented Dec 14, 2015

Will you please provide a plunker (or tutorial page) demonstrating the fix. Was it simply a mistake that #4760 was merged, and it never worked, or did it work in some cases? I don't see any link in that PR or issue demonstrating that it works.

@dlgski
Copy link
Contributor Author

dlgski commented Dec 14, 2015

I actually have no idea if it ever worked.  It took me a while on my end to find this error, I'd be curious to hear from the developer who fixed #4760 and see if there is a difference in my implementation versus theirs.
I will put together a plunker
Thanks,-Dana

On Monday, December 14, 2015 11:30 AM, Nate Dudenhoeffer <notifications@github.com> wrote:

Will you please provide a plunker (or tutorial page) demonstrating the fix. Was it simply a mistake that #4760 was merged, and it never worked, or did it work in some cases? I don't see any link in that PR or issue demonstrating that it works.—
Reply to this email directly or view it on GitHub.

@dlgski
Copy link
Contributor Author

dlgski commented Dec 14, 2015

Here is a plunker:

http://plnkr.co/edit/oLB8m4ngQFTxdQ98vlCJ?p=preview
Click on "Refresh Rows" to populate the grid. The group by Age (or another column). Click on the + icon on a row and it will not expand.

Now try this:
http://plnkr.co/edit/rc1HzaMnF2odGptWxj39?p=preview
This plunker has my simple CSS fix.

Thanks,
-Dana

@JLLeitschuh
Copy link
Contributor

Oh cool! Thanks for the plunker.

AgDude added a commit that referenced this pull request Dec 14, 2015
re-order styles for tree-header-row override
fix #4607
@AgDude AgDude merged commit 263e867 into angular-ui:master Dec 14, 2015
@AgDude
Copy link
Contributor

AgDude commented Dec 14, 2015

Thanks for the fix, and providing the requested example.

@dlgski dlgski deleted the treeview branch December 6, 2016 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants