2 Answers, 1 is accepted
Hi Richard,
In general, the Kendo UI Grid component provides a scrolling functionality which by default is disabled. For the Kendo UI for ASP.NET Core Grid specifically, the scrolling functionality can be enabled through the .Scrollable() configuration API method.
Also, the .Scrollable() API exposes a height configuration setting that sets an optional height style for the data area. If the height is exceeded, a horizontal scrollbar will be rendered inside the Grid. For example:
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Scrollable(s => s.Height(400)) // Set a 400px-height style.
)
// Alternatively:
@(Html.Kendo().Grid<OrderViewModel>()
.Name("grid")
.Scrollable(s => s.Height("auto")) // Remove the default height.
)
With that said, you can review the following Telerik REPL example for a visual representation of the mentioned above.
Additional information and different use-cases regarding the scrolling feature can be reviewed here:
- Scrolling Documentation - https://docs.telerik.com/aspnet-core/html-helpers/data-management/grid/scrolling/overview?_ga=2.196313068.1155667005.1641134553-386205687.1640007402
I hope you find this helpful. If any other questions arise, feel free to let me know.
Regards,
Alexander
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Thanks for the response, Alexander! I misspoke, I meant to say adding a horizontal scroll bar to the RadPivotGrid control. When it becomes too populated to fit on one screen, a horizontal scroll bar appears on the bottom, but it only affects the columns on the right side of the screen. What I meant to ask you was if there is a way to implement another scroll bar above the first one which will effect the rows that take up most of the screen. I've marked the area I'm referring to in the attached image. Hope this clears my question up!
Hello, Richard,
Thank you for the provided clarification.Indeed, RadPivotGrid from the Telerik UI for WinForms suite shows a horizontal scrollbar out of the box and it scrolls the data cells. All row descriptors are pinned and not scrollable. Hence, their width is too big that exceeds the pivot grid's width, they are not scrollable. In this case, it si suitable to use the compact mode:
https://docs.telerik.com/devtools/winforms/controls/pivotgrid/layout-settings#headers
Please give it a try and see how it works for you.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.