New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Grid Sticky Columns

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
sticky_columns.cshtml
Sticky_ColumnsController.cs
Sticky_Columns_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

Some scenarios require you to display a large number of Telerik UI for ASP.NET Core Grid columns on limited screen space, and making a small subset of them visible when scrolling the grid horizontally. The concept of sticky columns enables a certain columns to stay visible in the viewable area, yet remaining scrollable with the rest of the non-sticky columns.

The sticky-column feature of the ASP.NET Core Data Grid is available alongside the implementation of the frozen-column feature. While the locked columns in the Grid are rendered on the left side of the component, the sticky columns are displayed in the scrollable area with the non-frozen columns.

The Data Grid allows you to implement the sticky-column feature by setting the .Sticky() configuration of the corresponding column to true, which, as a result, will render the column as sticky. To allow the user to stick or unstick a certain column from the Column Menu, use the .Stickable(true) corresponding setting.

This demo shows how to implement sticky columns in the Data Grid and displays the Ship Address column as sticky.

For more information, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on rendering sticky columns.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources