web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

How to make a DetailList scrollable?

NEBULAA IT SOLUTIONS LLP Profile Picture NEBULAA IT SOLUTION... 412

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

The post How to make a DetailList scrollable? appeared first on Nebulaa IT Solutions.

Comments

*This post is locked for comments