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

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

Some senarios require you to display a large number of Telerik UI for ASP.NET MVC 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 MVC 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 MVC Data Grid product documentation on rendering sticky columns.

Additional Apps

This Grid example is part of a 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, and edit them and their theme appearance in the ThemeBuilder.

Support & Learning Resources

Additional Resources