Attribute class for telling the Gaia Core Runtime that a property is serializable. Usage is to submit the JavaScript "setter method" as JSMethodName part of the Attribute. Then when the property is changed during an Ajax Callback the framework itself will handle serializing the new value back to the client.

Namespace:  Gaia.WebWidgets
Assembly:  Gaia.WebWidgets (in Gaia.WebWidgets.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public sealed class AjaxSerializableAttribute : AjaxSerializableAttributeBase
Visual Basic (Declaration)
Public NotInheritable Class AjaxSerializableAttribute _
	Inherits AjaxSerializableAttributeBase

Examples

CopyUsing the AjaxSerializableAttribute attribute
/// <summary>
/// Is the Button Toggled
/// </summary>
[DefaultValue(false)]
[AjaxSerializable("setToggle")]
public bool Toggled
{
    get { return StateUtil.Get<bool>(ViewState, "Toggled"); }
    set { StateUtil.Set(ViewState, "Toggled", value, false); }
}

/// <summary>
/// Button Image
/// </summary>
[DefaultValue("")]
public string ImageCssClass
{
    get { return StateUtil.Get(ViewState, "ImageCssClass", string.Empty); }
    set { StateUtil.Set(ViewState, "ImageCssClass", value, string.Empty); }
}

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Gaia.WebWidgets..::.AjaxSerializableAttributeBase
      Gaia.WebWidgets..::.AjaxSerializableAttribute

See Also