Adaptive Rendering
The Telerik UI Grid for ASP.NET Core supports adaptive rendering to provide a consistent experience across device types.
When users filter or edit data on mobile devices, the Grid opens a dedicated view instead of using desktop inline or popup behavior. For a runnable example, review the adaptive rendering Grid demo.
Enabling the Responsive Web Design
To enable the adaptive rendering feature, set the Mobile property to MobileMode.Auto or MobileMode.Phone:
- If set to
MobileMode.Auto, the component uses adaptive rendering when viewed in a mobile browser. - If set to
MobileMode.Phone, the component always uses adaptive rendering, regardless of browser type.
Set the
heightoption when you enable mobile rendering. Without an explicit height, each Grid view can render at a different height.
@(Html.Kendo().Grid<ProductViewModel>()
.Name("grid")
.Mobile()
.HtmlAttributes(new { style = "height:450px;" })
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Products_Read", "Home"))
)
)Resizing Columns
The column resizing feature on touch screen devices is triggered when the user holds a finger on the respective column header. When the resizing icon appears, the user can resize the column by dragging.
![]()
Destroying Adaptive Grids
When the Grid runs in adaptive rendering mode, it generates auxiliary markup that you must remove if you manually destroy the Grid.
To manually destroy the Grid:
- Call the Kendo UI for jQuery
kendo.destroy()method over the closest.k-pane-wrapperancestor which is created around the Grid. - Remove the whole
.k-pane-wrapperelement from the DOM.