The requested page is not available for the requested platform. You are viewing the content for Default platform.

ToolbarBuilder.DataSource(Func<DataSourceFactory, OptionsOwnerBuilder>) Method

This method sets the client-side dataSource option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public ToolbarBuilder DataSource(
    Func<DataSourceFactory, OptionsOwnerBuilder> configurator
)

Parameters

Name Type Description
configurator Func<DataSourceFactory, OptionsOwnerBuilder>

Returns

Type Description
ToolbarBuilder

Remarks

In Razor files, use the following notation to set the option's value:

@Html.DevExtreme().Toolbar().DataSource(...)
See Also