ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

When the first row is opened in an expandable grid the third row loses it's + sign

Open ivankr91 opened this issue 11 years ago • 9 comments

As such it's impossible to expand the third row after the first one has been expanded.

http://plnkr.co/edit/CuM0zURR3eNJkrXmjLWA?p=preview

screenshot1

ivankr91 avatar Feb 02 '15 09:02 ivankr91

@jpuri, any thoughts?

PaulL1 avatar Feb 05 '15 04:02 PaulL1

I am not able to replicate it on the plnkr. I guess some commit has already fixed the issue.

jpuri avatar Feb 05 '15 05:02 jpuri

It was doing it for me on the plunker. OSX/Chrome. Open the plunker, click on expand on row 0. Row 2 loses it's button, and cannot be clicked on.

PaulL1 avatar Feb 05 '15 07:02 PaulL1

Oh...even I could replicate that now, might be its random. Let me check this issue.

jpuri avatar Feb 05 '15 07:02 jpuri

Hey @PaulL1 ,

I do not have much idea about it. Row headers use left container. Might be @swalters / @novice3030 will be able to help.

jpuri avatar Feb 05 '15 08:02 jpuri

The fact that the +'s are in their own separate container means they know nothing about the expanding row (HTML/CSS) wise.

My workaround was like this:

  1. Add a column for the new +
        columnDefs: [
            {
                field: 'expand',
                enableColumnMenu:false,
                enableSorting:false,
                displayName:'',
                width:'*',
                cellTemplate: 'mytemplate.html'
            }
]
  1. in mytemplate.html (for example - i'm using a toggle class directive and some css transforms for chaning the + to a -) it also expands the row on click like so:
<div class="ngCellText" ng-class="col.colIndex()">
    <a toggle-class="row-expanded" ng-click="grid.api.expandable.toggleRowExpansion(row.entity)">
        <div toggle-class="open" class="icon menu2">
            <span></span>
            <span></span>
        </div>
    </a>
</div>
  1. Use css to hide the old +s completely, and unfloat EVERYTHING. Whoever wrote the css for this needs to stop the float love.

I'd quite happily help sort the bug out but it needs some quite serious changes, like adding the +s as a column instead of a separate container, and re-writing some of the css.

I also think in doing so - responsive should be thought about too.

j-r-t avatar Feb 09 '15 15:02 j-r-t

This looks to be resolved - could people verify?

PaulL1 avatar Mar 28 '15 09:03 PaulL1

Looks fixed, no further comment for 2 weeks, assuming can close.

PaulL1 avatar Apr 12 '15 06:04 PaulL1

Can have a look if it can be used for expandable row click and icon click http://plnkr.co/edit/YnLVEUS4gmZWXjgsNXdU?p=preview

manjunathmofs avatar Aug 21 '17 13:08 manjunathmofs