• No Responses

    How to make a DetailList scrollable?

    Introduction

    Recently, we created a DetailList type of PCF control to display some data.

    As this list was going to display hundreds of records, we couldn’t scroll through them as there was no scroller present.

    Jan 2022 blog 2

    Solution

    After a bit of research we found that a scroller can be added by importing “ScrollablePane” component from Fluent UI library using the below command:

    import { ScrollablePane, ScrollbarVisibility } from ‘office-ui-fabric-react’;

    We add the ScrollablePane tag just above our DetailList tag as shown below.

    Jan 2022 blog 2

    After building the PCF control, now we can see that our list is scrollable.

    Jan 2022 blog 2 gif

    Links

  • Subscribe
    Notify of
    guest
    0 Comments
    Inline Feedbacks
    View all comments

WANT QUICK D365 IMPLEMENTATION?

Let started with our D365 Quickstart package and get onboard within 7 days!

I'M INTERESTED!
LATEST POSTS
© Copyright 2024 Nebulaa IT Solutions LLP. All Rights Reserved.
Download
Brochure