The scroll of the grid inside the Drawer component doesn't work

1 Answer 125 Views
Drawer Grid
Gabriel
Top achievements
Rank 2
Iron
Gabriel asked on 15 Dec 2023, 08:36 PM | edited on 15 Dec 2023, 09:01 PM

Hi,

Why can't I use the Grid component inside the Drawer? The scroll disappears, and when scrolling occurs, it happens on the page and not within the grid. I created an example containing two grids. As you can see, the top grid has scrolling, but when inserted inside the Drawer, the scrolling no longer appears

Link
Oq8tmu (forked) - StackBlitz


These display: flex settings are responsible for this. I don't understand why, and what can I do to fix that?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 18 Dec 2023, 07:59 AM

Hello Gabriel,

I have tested the example that you have shared, but the scrollbar for both Grid components is displayed and works correctly on my side. I have tested it on Chrome and I am attaching a screenshot with the example on my side.

If the issue persists on your side, please elaborate if you are still able to observe the issue in the example and on which browser you are seeing the issue.

Looking forward to your reply.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Gabriel
Top achievements
Rank 2
Iron
commented on 18 Dec 2023, 10:05 AM

ohh sorry, I'm referring to horizontal scrolling, not vertical scrolling.  please make the screen smaller and u can see the problem. All the grids I use have many columns.

Thanks

Konstantin Dikov
Telerik team
commented on 18 Dec 2023, 10:56 AM

Hi Gabriel,

For the horizontal scrollbar, you can force the overflow of the content to be "hidden", so that the Grid can change its width accordingly:

.k-drawer-content {
  overflow: hidden;
}

Another option is to set explicit width for the Grid and update it dynamically if the window resizes.

 

Gabriel
Top achievements
Rank 2
Iron
commented on 18 Dec 2023, 10:58 AM

The horizontal scroll doesn't work; it only appears on the page.


Gabriel
Top achievements
Rank 2
Iron
commented on 18 Dec 2023, 11:01 AM

Thanks, that works perfectly.
Tags
Drawer Grid
Asked by
Gabriel
Top achievements
Rank 2
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or