Sp-dev-fx-controls-react: ListView Control Sticky Header scrolling issue

Created on 17 Nov 2020  路  19Comments  路  Source: pnp/sp-dev-fx-controls-react

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [2.1.0]

Expected / Desired Behavior / Question

With sticky header feature enable in the PnP ListView control with more 80 items, scrolling items missing (large blank zone). It's seems a render problem (on Chrome browser press F12 twice, the missing items magically reappears).

Thanks!
PnPJS Issue 734

fixed-next-drop bug

Most helpful comment

@AJIXuMuK PR create with the revert to ScrollablePane.

All 19 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Hi @ragu64

I try with 100 items and was not able to retrieve this error, this only happens in the filter or when you list all?

I have three fields (as you can see in attached image), it's happen always.
The button 'load more...' simply append 10 random items at time.
Without sticky header or using Fluent UI DetailsList it's works fine.

Did you try to load all in the sticky header without the append 10 random items and happen the same error?

Same error. I think is SharePoint Online effect in local (non SPO) it's works fine.

This is my react component used in my spfx test webpart:

Action.tsx.txt

Hi @ragu64,

I can't repro your issue. I used your code to create a web part and it behaves correctly:
Screen Shot 2020-11-20 at 4 34 04 PM

Could you try beta version of the library?

Hi, with more than 80 items the issue recurs

Could you try beta version of the library?

In beta version the stickyHeader property is disappered.

@ragu64 - I just double-checked, the property is still there.
Could you please check what version of the library you have in package.json file?

@ragu64 - I just double-checked, the property is still there.
Could you please check what version of the library you have in package.json file?

You are right, the property stickyHeader is still there, sorry.
after install spfx-controls-react beta in my solution:
npm install @pnp/spfx-controls-react@next --save

this is the version in my package.json:
"@pnp/spfx-controls-react": "^2.2.0-beta.056c6d9",

Ok i found the issue, The List View uses the DetailsList and this one uses lazy loading "Load Content by blocks of 100 or around that" only when default vertical scroll "From Page" the content of ListView is refresh by blocks. The fixe-header doesn't activate the Page scroll and cannot refresh because header is fix only by scroll. I will try to see if the refresh block can be call when scroll with fix header to get the content of that block.

@aaclage - what if we go back to the implementation with ScrollablePane?

@AJIXuMuK
i will try that.

@AJIXuMuK
Ok works with ScrollablePane implementation and with the lazy loading, i will revert to that control.

@AJIXuMuK PR create with the revert to ScrollablePane.

Thank you @aaclage!
The PR has been merged and will be available in the next release.

In a meanwhile you can test the functionality in beta version

Thank you guys, now ListView stickyHeader={true} in PnP Controls 2.3.0-beta, works fine!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bva999 picture bva999  路  5Comments

semopz picture semopz  路  3Comments

christopher-walker picture christopher-walker  路  7Comments

lenain71 picture lenain71  路  3Comments

Arknev picture Arknev  路  3Comments