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

More...

Inheritance diagram for Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >:
Ext.Net.FormPanelBase.Builder< TFormPanel, TBuilder >

Public Member Functions

 Builder (TFormPanel component)
 
virtual TBuilder Listeners (Action< FormPanelListeners > action)
 Client-side JavaScript Event Handlers More...
 
virtual TBuilder DirectEvents (Action< FormPanelDirectEvents > action)
 Server-side Ajax Event Handlers More...
 
 Builder ()
 
 Builder (FormPanel component)
 
 Builder (FormPanel.Config config)
 
- Public Member Functions inherited from Ext.Net.FormPanelBase.Builder< TFormPanel, TBuilder >
 Builder (TFormPanelBase component)
 
virtual TBuilder PollInterval (int pollInterval)
 Interval in milliseconds at which the form's fields are checked for value changes. Only used if the pollForChanges option is set to true. Defaults to 500 milliseconds. More...
 
virtual TBuilder PollForChanges (bool pollForChanges)
 If set to true, sets up an interval task (using the pollInterval) in which the panel's fields are repeatedly checked for changes in their values. This is in addition to the normal detection each field does on its own input element, and is not needed in most cases. It does, however, provide a means to absolutely guarantee detection of all changes including some edge cases in some browsers which do not fire native events. Defaults to false. More...
 
virtual TBuilder BaseParams (Action< ParameterCollection > action)
 Parameters to pass with all requests. e.g. baseParams: {id: '123', foo: 'bar'}. More...
 
virtual TBuilder ErrorReader (Action< ReaderCollection > action)
 An Ext.data.DataReader (e.g. Ext.data.reader.Xml) to be used to read field error messages returned from 'submit' actions. This is optional as there is built-in support for processing JSON responses. More...
 
virtual TBuilder Method (HttpMethod method)
 The request method to use (GET or POST) for form actions if one isn't supplied in the action options. More...
 
virtual TBuilder Reader (Action< ReaderCollection > action)
 An Ext.data.DataReader (e.g. Ext.data.reader.Xml) to be used to read data when executing 'load' actions. This is optional as there is built-in support for processing JSON responses. More...
 
virtual TBuilder StandardSubmit (bool standardSubmit)
 If set to true, a standard HTML form submit is used instead of a XHR (Ajax) style form submission. All of the field values, plus any additional params configured via baseParams and/or the options to submit, will be included in the values submitted in the form. More...
 
virtual TBuilder Timeout (int timeout)
 Timeout for form actions in seconds (default is 30 seconds). More...
 
virtual TBuilder TrackResetOnLoad (bool trackResetOnLoad)
 If set to true, reset() resets to the last loaded or setValues() data instead of when the form was first created. More...
 
virtual TBuilder Url (string url)
 The URL to use for form actions if one isn't supplied in the doAction options. More...
 
virtual TBuilder WaitMsgTarget (string waitMsgTarget)
 By default wait messages are displayed with Ext.MessageBox.wait. You can target a specific element by passing it or its id or mask the form itself by passing in true. More...
 
virtual TBuilder WaitTitle (string waitTitle)
 The default title to show for the waiting message box More...
 
virtual TBuilder JsonSubmit (bool jsonSubmit)
 If set to true, the field values are sent as JSON in the request body. All of the field values, plus any additional params configured via baseParams and/or the options to submit, will be included in the values POSTed in the body of the request. More...
 
virtual TBuilder FieldDefaults (Action< Labelable > action)
 If specified, the properties in this object are used as default config values for each Ext.form.Labelable instance (e.g. Ext.form.field.Base or Ext.form.FieldContainer) that is added as a descendant of this container. Corresponding values specified in an individual field's own configuration, or from the defaults config of its parent container, will take precedence. See the documentation for Ext.form.Labelable to see what config options may be specified in the fieldDefaults. More...
 
virtual TBuilder ApplyToFields (object values)
 
virtual TBuilder ApplyIfToFields (object values)
 
virtual TBuilder ClearInvalid ()
 
virtual TBuilder LoadForm (object options)
 
virtual TBuilder MarkInvalid (object errors)
 Mark fields in this form invalid in bulk. More...
 
virtual TBuilder Reset (bool resetRecord=false)
 Convenience function reset the form. This is the same as calling this.getForm().reset(). More...
 
virtual TBuilder SetValues (object values)
 Set values for fields in this form in bulk. More...
 

Static Public Member Functions

static implicit operator Builder (FormPanel component)
 

Detailed Description

Type Constraints
TFormPanel :FormPanel 
TBuilder :Builder 
TBuilder :TFormPanel 
TBuilder :TBuilder 

Constructor & Destructor Documentation

◆ Builder() [1/4]

Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >.Builder ( TFormPanel  component)
inline

◆ Builder() [2/4]

Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >.Builder ( )
inline

◆ Builder() [3/4]

Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >.Builder ( FormPanel  component)
inline

◆ Builder() [4/4]

Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >.Builder ( FormPanel.Config  config)
inline

Member Function Documentation

◆ DirectEvents()

virtual TBuilder Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >.DirectEvents ( Action< FormPanelDirectEvents action)
inlinevirtual

Server-side Ajax Event Handlers

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ Listeners()

virtual TBuilder Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >.Listeners ( Action< FormPanelListeners action)
inlinevirtual

Client-side JavaScript Event Handlers

Parameters
actionThe action delegate
Returns
An instance of TBuilder

◆ operator Builder()

static implicit Ext.Net.FormPanel.Builder< TFormPanel, TBuilder >.operator Builder ( FormPanel  component)
inlinestatic


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