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

Telerik UI for ASP.NET MVC Grid Sticky Columns

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
sticky_columns.cshtml
Sticky_ColumnsController.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

There are scenarios where the requirment is to display a large number of 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 column(s) to stay visible in the viewable area, yet remaining scrollable with the rest of the non-sticky columns.

The Sticky columns feature is available alongside frozen columns. While the locked columns in the Grid are rendered on the left side of the widget the sticky columns are displayed in the scrollable area with the non-frozen columns.

The Telerik Grid for ASP.NET MVC supports sticky columns by a single configuration setting. Simply set the .Sticky(true) boolean setting of the corresponding column to true, and this will make the column sticky. To allow the user to stick/unstick a certain column from the Column Menu the corresponding setting is .Stickable(true). In this demo the sticky column is Ship Address.

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

Support & Learning Resources

Additional Resources