FilterBuilderFieldLookupBuilder.DataSourceOptions(Action<DataSourceOptionsBuilder>) Method
In This Article
Provides access to methods that mirror client-side data source options.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public FilterBuilderFieldLookupBuilder DataSourceOptions(
Action<DataSourceOptionsBuilder> configurator
)
#Parameters
Name | Type | Description |
---|---|---|
configurator | Action<Data |
A function that configures data source options. |
#Returns
Type | Description |
---|---|
Filter |
A reference to this instance after the method is called. |
#Remarks
To configure data source options, use a lambda expression.
@(Html.DevExtreme().FilterBuilder()
.Fields(fields => {
fields.Add().Lookup(lookup => lookup
.DataSource(...)
.DataSourceOptions(options => options
.Sort(s => s.AddSorting("MyProp"))
)
);
})
)
See Also