The AjaxControl type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| AjaxControl |
The constructor takes a control that implements the IAjaxControl interface.
|
Methods
| Name | Description | |
|---|---|---|
| BeginLoadViewState |
Called at the begining of the LoadViewState() method,
to extract saved state for the base LoadViewState() method.
Should be coupled with EndLoadViewState(), after the control
viewstate is fully loaded.
| |
| DetermineRequiresMoveSerialization |
When the ajax control is replaced, this method is called to check
if the move script needs to serialized, or if it is handled by the replacement script
| |
| EndLoadViewState |
Called at the end of the LoadViewState() method.
Should be coupled with the BeginLoadViewState() method.
| |
| Equals | (Inherited from Object.) | |
| ExecuteLoadPostData |
This function is used to make sure we detect changes and merge them when LoadPostData Second Try fires after you have modified
the state of your control.
| |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetMarkup |
When the control has not yet been rendered to the page, this function is used to extract the control
content and inject it into the page.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| LoadControlState |
Called to load control state
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OnInit |
In Gaia we must register the page width the Manager in order to later be able to manipulate
it's rendering and send Ajax data back to the client instead of the default full rendering
HTML. This is being done here in the OnInit override (which have been "outfactored" to this class)
| |
| OnPreRender |
Called just before the rendering of the Control is being initiated.
We use this override to add inclusion of the JavaScript files for the Control and signalize that we have
a Gaia Control visible on the page
| |
| OnUnload |
Forward calls of OnUnload to this method.
| |
| RenderCallback |
Renders the Control during Ajax Callback.
| |
| RenderControl |
Renders the control. This is a core function that handles the various scenarios that controls can be
rendered in. You will probably want to leave this function alone and override the RenderControlHtml
function instead. This function can then again be used as an input parameter to this class.
| |
| RenderControlChangesOnAjaxCallback |
Called during ajax callback to render control state changes.
| |
| RenderControlFirstTimeOnAjaxCallback |
Called when the control is being rerendered during ajax callback.
| |
| RenderNonCallback |
This method will run when either this is an initial hit, a conventional postback or
for some other reasons (e.g. ForceAnUpdate) the control needs to render HTML instead
of just changing the property values.
| |
| SaveControlState |
Saves state information into control state if viewstate is disabled.
| |
| SaveViewState |
Forward the SaveViewState function here so that script files are included. This function also takes care of setting the
ShouldRender flag which decides wheter the control should be rendered or not. If ViewState is disabled, this function
should not be executed.
| |
| ToString | (Inherited from Object.) | |
| TrackViewState |
Begins ViewState tracking.
Called after InitRecursive() is called.
|
Properties
| Name | Description | |
|---|---|---|
| ClientID |
Returns the ClientID which the control has been rendered with.
| |
| Manager |
Shortend way to access Manager.Instance.
Used by derived classes for cached access to Manager.Instance.
| |
| Rendered |
Gets value indicating if this ajax control was previously rendered or not.
Used by derived classes.
| |
| Rerendered |
Gets value indicating if the ajax control is rerendered.
Used by derived classes.
| |
| ShouldRender |
Returns true if the control should be completely re-rendered. Gaia tries to do "partial rendering" as
seldom as possible, however there are a few scenarios where partial rendering is "inevitable".
One of those are if the control has not previously been rendered due to either being "invisible" or
some ancestor container widget was invisible. Another reason might be because the control needs a full
re-rendering like for instance ForceAnUpdate on container widgets. If this property is true then
a full re-rendering will be initiated.
| |
| ShouldRenderAjaxControl |
Used by derived classes to know if the control should be rendered or not
based on the facts if the ShouldRender was set or control was previously rendered
| |
| StateManager |
See StateManager for documentation on this method
|
