Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder > Class Template Reference

More...

Inheritance diagram for Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >:
Ext.Net.BaseItem.Builder< TAjaxOptions, TBuilder >

Public Member Functions

 Builder (TAjaxOptions component)
 
virtual TBuilder DisableCaching (bool disableCaching)
 True to add a unique cache-buster param to GET requests. (defaults to true) More...
 
virtual TBuilder DisableCachingParam (string disableCachingParam)
 Change the parameter which is sent went disabling caching through a cache buster. Defaults to '_dc' More...
 
virtual TBuilder Timeout (int timeout)
 The timeout in milliseconds to be used for requests. (defaults to 30000) More...
 
virtual TBuilder Url (string url)
 The URL to which to send the request, or a function to call which returns a URL string. The scope of the function is specified by the scope option. Defaults to the configured url. More...
 
virtual TBuilder Method (HttpMethod method)
 The HTTP method to use for the request. Defaults to the configured method, or if no method was configured, "GET" if no parameters are being sent, and "POST" if parameters are being sent. Note that the method name is case-sensitive and should be all caps. More...
 
virtual TBuilder IsUpload (bool isUpload)
 True if the form object is a file upload More...
 
virtual TBuilder Json (bool json)
 JSON data to use as the post. More...
 
virtual TBuilder Xml (bool xml)
 XML document to use for the post. More...
 
virtual TBuilder FormID (string formID)
 The id of the form to submit. If this.ParentForm is not null then this.ParentForm.ClientID is used, else if FormID is empty the Page.Form.ClientID is used, else try to find the form in dom tree hierarchy, otherwise the Url of current page is used. More...
 
virtual TBuilder Headers (Action< ParameterCollection > action)
 An object containing request headers which are added to each request made by this object. More...
 
virtual TBuilder Params (Action< ParameterCollection > action)
 
virtual TBuilder Callback (string callback)
 
 Builder ()
 
 Builder (AjaxOptions component)
 
 Builder (AjaxOptions.Config config)
 
- Public Member Functions inherited from Ext.Net.BaseItem.Builder< TAjaxOptions, TBuilder >
 Builder (TItem item)
 
virtual TItem ToComponent ()
 Get the instance of the underlying StateManagedItem. More...
 
virtual TBuilder CustomConfig (Action< ConfigItemCollection > action)
 Collection of custom js config More...
 

Static Public Member Functions

static implicit operator Builder (AjaxOptions component)
 
- Static Public Member Functions inherited from Ext.Net.BaseItem.Builder< TAjaxOptions, TBuilder >
static implicit operator TItem (BaseItem.Builder< TItem, TBuilder > builder)
 Implicit conversion of a TItem object directly into a TComponent. More...
 

Additional Inherited Members

- Protected Attributes inherited from Ext.Net.BaseItem.Builder< TAjaxOptions, TBuilder >
TItem item
 

Detailed Description

Type Constraints
TAjaxOptions :AjaxOptions 
TBuilder :Builder 
TBuilder :TAjaxOptions 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Builder ( TAjaxOptions  component)
inline

◆ Builder() [2/4]

Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Builder ( AjaxOptions  component)
inline

◆ Builder() [4/4]

Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Builder ( AjaxOptions.Config  config)
inline

Member Function Documentation

◆ Callback()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Callback ( string  callback)
inlinevirtual

◆ DisableCaching()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.DisableCaching ( bool  disableCaching)
inlinevirtual

True to add a unique cache-buster param to GET requests. (defaults to true)

◆ DisableCachingParam()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.DisableCachingParam ( string  disableCachingParam)
inlinevirtual

Change the parameter which is sent went disabling caching through a cache buster. Defaults to '_dc'

◆ FormID()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.FormID ( string  formID)
inlinevirtual

The id of the form to submit. If this.ParentForm is not null then this.ParentForm.ClientID is used, else if FormID is empty the Page.Form.ClientID is used, else try to find the form in dom tree hierarchy, otherwise the Url of current page is used.

◆ Headers()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Headers ( Action< ParameterCollection action)
inlinevirtual

An object containing request headers which are added to each request made by this object.

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ IsUpload()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.IsUpload ( bool  isUpload)
inlinevirtual

True if the form object is a file upload

◆ Json()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Json ( bool  json)
inlinevirtual

JSON data to use as the post.

◆ Method()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Method ( HttpMethod  method)
inlinevirtual

The HTTP method to use for the request. Defaults to the configured method, or if no method was configured, "GET" if no parameters are being sent, and "POST" if parameters are being sent. Note that the method name is case-sensitive and should be all caps.

◆ operator Builder()

static implicit Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.operator Builder ( AjaxOptions  component)
inlinestatic

◆ Params()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Params ( Action< ParameterCollection action)
inlinevirtual

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ Timeout()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Timeout ( int  timeout)
inlinevirtual

The timeout in milliseconds to be used for requests. (defaults to 30000)

◆ Url()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Url ( string  url)
inlinevirtual

The URL to which to send the request, or a function to call which returns a URL string. The scope of the function is specified by the scope option. Defaults to the configured url.

◆ Xml()

virtual TBuilder Ext.Net.AjaxOptions.Builder< TAjaxOptions, TBuilder >.Xml ( bool  xml)
inlinevirtual

XML document to use for the post.


The documentation for this class was generated from the following file: