Oct 14, 2008, 12:36 PM
Version 0.7.0 - BREAKING CHANGES
- Renamed <Content> to <Body>, see http://forums.ext.net/showthread.php...=3059-7-1.aspx
- The .AutoLoad property has been enhanced to now require a LoadConfig object, see http://forums.ext.net/showthread.php...=5610-7-1.aspx
Example (Old)
Example (New)<ext:Panel ID="Panel1" runat="server" Title="Parent" Height="200" AutoLoad="Child.aspx" />
The change also affects the .AutoLoadIFrame property.<ext:Panel ID="Panel1" runat="server" Title="Parent" Height="200"> <AutoLoad Url="Child.aspx" /> </ext:Panel>
Example(Old)
Example (New)<ext:Panel ID="Panel1" runat="server" Title="Parent" Height="200" AutoLoadIFrame="http://www.google.com/" />
<ext:Panel ID="Panel1" runat="server" Title="Parent" Height="200"> <AutoLoad Url="http://www.google.com/" Mode="IFrame" /> </ext:Panel>
- The <ext:ComboBox> OnItemChange event/property has been renamed to OnValueChanged.
Other than the renaming, the OnValueChanged property remains pretty much untouched. As before, the event will fire when the ComboBox losses focus (onBlur) if the value has changed. This functions very similar to the "OnTextChanged" event of the <asp:TextBox>.
Example (Old)
Example (New)<script runat="server"> protected void ComboBox1_Changed(object sender, EventArgs e) { // something here... } </script> <ext:ComboBox ID="ComboBox1" runat="server" Width="200" AutoPostBack="true" OnItemChanged="ComboBox1_Changed" />
<script runat="server"> protected void ComboBox1_Changed(object sender, EventArgs e) { // something here... } </script> <ext:ComboBox ID="ComboBox1" runat="server" Width="200" AutoPostBack="true" OnValueChanged="ComboBox1_Changed" />
- The <UserParams> property of an AjaxEvent was renamed to <ExtraParams>.
- The AjaxRespone.MakeAnswer() Method was renamed to AjaxResponse.Write(). See items #3 and #4 below as well. With all revisions combined, AjaxResponse.Write() is now Response.Write().
- The AjaxEvent EnableViewState (boolean) property was changed to ViewStateMode (enum). Possible values include:
a. Default
b. Exclude
c. Include
If the AjaxEvent Type="Submit", the ViewState is updated on the server-side, although by default this new ViewState is not returned back to the client in the Response. If you require ViewState to be persisted between AjaxEvents, please set ViewStateMode="Include".
Example
The ViewStateMode can also be set at the Page level by setting AjaxViewStateMode="Include" on the ScriptManager.<ext:Button ID="Button1" runat="server" Text="Click Me"> <AjaxEvents> <Click OnEvent="Button1_Click" ViewStateMode="Include" /> </AjaxEvents> </ext:Button>
Example
The AjaxViewStateMode property can be set at the Session level.<ext:ScriptManager ID="ScriptManager1" runat="server" AjaxViewStateMode="Include" />
Example
The AjaxViewStateMode can be set at the Application level.Session["Coolite.AjaxViewStateMode"]
Example
The AjaxViewStateMode can also be set in Application wide from within the web.config.Application["Coolite.AjaxViewStateMode"]
Example
<?xml version="1.0"?> <configuration> <configSections> <section name="coolite" type="Coolite.Web.UI.GlobalConfig" requirePermission="false" /> </configSections> <coolite ajaxViewStateMode="Include" /> </configuration>
- The previous "AjaxResponse" class has been renamed to "Response". Functionality unchanged.
- The previous "ResponseObject" class has been renamed to "AjaxResponse".
- The <ext:Store> BeforeAjaxPostBackEventArgs was renmaed to BeforeAjaxEventArgs.
- The <ext:Store> AfterAjaxPostBackEventArgs renamed to AfterAjaxEventArgs.