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

ui-grid-header-canvas bad height in v3.0.0-rc.21 on TreeView

Open jibap opened this issue 11 years ago • 6 comments

Hi,

I use ui-grid in TreeView, in v3.0.0-rc.21-43f63ac When i expand a node, the tree view row header height become bad (except first time).

image

I didn't have this issue in my previous version (Apr 24, 2015).

I exploit this issue to ask you another : i use externals filters and i want to edit filters dynamically. I am able to edit them (visually) but they are not watched by filterChanged event ( i read a lot of issue talking about it, and i anderstand the reason for no watching all - explained in tutorial 316 ). But how to rebuild(redraw, refresh ??) the grid with my new options ?

image

About first issue, you can look in second picture when i add a filter, i use "notifyDataChange", and the tree view row header is recalculated good. So i tried to call it "on.rowExpanded" but it is not working....

Sorry for my english.

Thanks,

jibap avatar Apr 29 '15 12:04 jibap

I'm experiencing the same bug with grouping. I believe it was caused by this commit: 43f63ac9f62a133b51d7af2f4a966318eae8e9ac - it works in the rc21 "stable" release but not in the latest unstable.

meyerds avatar Apr 29 '15 16:04 meyerds

I think this is a duplicate of #3394

AgDude avatar May 05 '15 15:05 AgDude

I think the height portion of this is resolved, can you please confirm @jibap?

On the filters, it looks like your filters are using the ui-grid native filter logic, but you just want to apply the filtering using externalFiltering? If this is correct, then you should be getting a filterChanged event when the filter is edited - there is a watch on any filter box that ui-grid displays. The area we don't watch is if you programatically change a filter that is on a hidden column.

Do the filters that you use have a custom directive? Or are they entirely native? Could you provide a plunker and some instructions to recreate the issue?

PaulL1 avatar May 16 '15 00:05 PaulL1

Hi @PaulL1,

I try with v3.0.0-rc.21-869be69, but the issue still bad...

On the filters, sorry i forgot to precise, indeed i want to change filters programatically. The concept is having a "+" button which create a new filter row like this : image (you can see the first issue here !)

Finally i used a 'rowHeaderCol' for implementing the "+" and "trash" buttons with alignment of filters rows and i simply duplicate the "grid.colums.filters[0]" to add a new filter row. I add a "ng-change" attribute to my filters elements which update a scope variable containing terms values stored in filters. And then a function update(filtered and sorted) the data with this scope variable. It works !! i have a multiple filtering.

jibap avatar May 16 '15 09:05 jibap

I think header height is now resolved. Closing.

PaulL1 avatar Jun 06 '15 01:06 PaulL1

I still have this issue. Tested with unstable 2015-06-08. The height is still 26px

jutoft avatar Jun 10 '15 08:06 jutoft