Skip to main content

DataGridColumnLookupBuilder Methods

Provides methods that allow you to configure nested options of the client-side lookup object.
Name Description
AllowClearing(JS) Specifies whether to display the Clear button in lookup column cells while they are being edited. Mirrors the client-side allowClearing option.
AllowClearing(Boolean) Specifies whether to display the Clear button in lookup column cells while they are being edited. Mirrors the client-side allowClearing option.
DataSource(JS) Specifies the data source for the lookup column. Mirrors the client-side dataSource option.
DataSource(RazorBlock) Binds a lookup column to data that a JavaScript function returns.
DataSource(IEnumerable, String[]) Binds a lookup column to a collection: Array, List, or IEnumerable.
DataSource(Func<DataSourceFactory, OptionsOwnerBuilder>) Binds a lookup column to data, allows you to configure data access from different sources: API controllers, Razor page handlers, OData services, arrays, and more.
DataSource(String, String[]) Binds a lookup column to read-only data in JSON format.
DataSource(String) Binds a lookup column to data that a JavaScript function returns.
DataSourceOptions(Action<DataSourceOptionsBuilder>) Provides access to methods that mirror client-side data source options.
DisplayExpr(JS) Specifies the data source field whose values must be displayed. Mirrors the client-side displayExpr option.
DisplayExpr(String) Specifies the data source field whose values must be displayed. Mirrors the client-side displayExpr option.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Option(String, Object) Specifies an option by its name.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
ValueExpr(JS) Specifies the data field whose values should be replaced with values from the displayExpr field. Mirrors the client-side valueExpr option.
ValueExpr(String) Specifies the data field whose values should be replaced with values from the displayExpr field. Mirrors the client-side valueExpr option.
See Also