Skip to main content

ControllerDataSourceOptionsBuilder Methods

Provides methods that allow you to configure access to an API controller.
Name Description
Area(String) Specifies access to a different area’s data controller.
CacheRawData(Boolean) Specifies whether raw data should be saved in the cache. Applies only if LoadMode(DataSourceLoadMode) is Raw.
Controller(String) Specifies the data controller to access.
DeleteAction(Boolean) Specifies that the controller action decorated with the HttpDelete attribute should be used.
DeleteAction(String) Specifies the controller action used to delete data.
DeleteMethod(String) Specifies the HTTP method for delete requests; “DELETE” by default. Inherited from DataLibraryApiBuilder<TSelf>.
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.
ErrorHandler(RazorBlock) A function that is executed when an error occurs.
ErrorHandler(String) A function that is executed when an error occurs.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
InsertAction(Boolean) Specifies that the controller action decorated with the HttpPost attribute should be used.
InsertAction(String) Specifies the controller action used to insert data.
InsertMethod(String) Specifies the HTTP method for insert requests; “POST” by default. Inherited from DataLibraryApiBuilder<TSelf>.
Key(String[]) Specifies the key property or properties. Inherited from DataLibraryApiBuilder<TSelf>.
LoadAction(Boolean)
LoadAction(String) Specifies the controller action used to load data.
LoadMethod(String) Specifies the HTTP method for load requests; “GET” by default. Requires DevExtreme.AspNet.Data >= 1.4. Inherited from DataLibraryApiBuilder<TSelf>.
LoadMode(DataSourceLoadMode) Specifies how data returned by LoadAction(String) is treated.
LoadParams(Object) Specifies additional parameters to pass with the load request. Inherited from DataLibraryApiBuilder<TSelf>.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
OnBeforeSend(RazorBlock) Specifies a function used to customize a web request before it is sent. Inherited from DataLibraryApiBuilder<TSelf>.
OnBeforeSend(String) Specifies a function used to customize a web request before it is sent. Inherited from DataLibraryApiBuilder<TSelf>.
OnInserted(RazorBlock) A function that is executed after a data item is added.
OnInserted(String) A function that is executed after a data item is added.
OnInserting(RazorBlock) A function that is executed before a data item is added.
OnInserting(String) A function that is executed before a data item is added.
OnLoaded(RazorBlock) A function that is executed after data is loaded.
OnLoaded(String) A function that is executed after data is loaded.
OnLoading(RazorBlock) A function that is executed before data is loaded.
OnLoading(String) A function that is executed before data is loaded.
OnModified(RazorBlock) A function that is executed after a data item is added, updated, or removed.
OnModified(String) A function that is executed after a data item is added, updated, or removed.
OnModifying(RazorBlock) A function that is executed before a data item is added, updated, or removed.
OnModifying(String) A function that is executed before a data item is added, updated, or removed.
OnPush(RazorBlock) A function that is executed before changes are pushed.
OnPush(String) A function that is executed before changes are pushed.
OnRemoved(RazorBlock) A function that is executed after a data item is removed.
OnRemoved(String) A function that is executed after a data item is removed.
OnRemoving(RazorBlock) A function that is executed before a data item is removed.
OnRemoving(String) A function that is executed before a data item is removed.
OnUpdated(RazorBlock) A function that is executed after a data item is updated.
OnUpdated(String) A function that is executed after a data item is updated.
OnUpdating(RazorBlock) A function that is executed before a data item is updated.
OnUpdating(String) A function that is executed before a data item is updated.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RouteName(String) Specifies the route to use.
ToString() Returns a string that represents the current object. Inherited from Object.
UpdateAction(Boolean) Specifies that the controller action decorated with the HttpPut attribute should be used.
UpdateAction(String) Specifies the controller action used to update data.
UpdateMethod(String) Specifies the HTTP method for update requests; “PUT” by default. Inherited from DataLibraryApiBuilder<TSelf>.
See Also