Skip to main content

DataInspectorOptionBuilder.OnGridContentReady(String) Method

A handler for the event that occurs when the widget’s content is ready and each time the content is changed.

Namespace: DevExpress.DashboardAspNetCore

Assembly: DevExpress.Dashboard.v23.2.AspNetCore.dll

NuGet Package: DevExpress.AspNetCore.Dashboard


public DataInspectorOptionBuilder OnGridContentReady(
    string onGridContentReady


Name Type Description
onGridContentReady String

A function that is executed when the widget’s content is ready and each time the content is changed.


Type Description

A reference to this instance after the operation has completed.


The Data Inspector uses the DevExtreme DataGrid to display raw or aggregated data.

To customize the Grid widget, enable the Data Inspector (set the AllowInspectAggregatedData(Boolean) / AllowInspectRawData(Boolean) properties to true) and handle the DataGrid’s onContentReady event:

<div style="position: absolute; left: 0; top: 0; right: 0; bottom: 0;">
    .Extensions(x => x.DataInspector(y => y.AllowInspectAggregatedData(true).AllowInspectRawData(true).OnGridContentReady("onGridContentReady")))

Use the event’s component property to obtain the DataGrid instance. The following code snippet shows how to change the DataGrid options (hide the “CategoryName” column):

function onGridContentReady(args) {
    args.component.columnOption("CategoryName", "visible", false);
See Also