|
Subscribe
|
- Renamed <Content> to <Body>, see http://coolite.com/forums/Topic3059-7-1.aspx
- The .AutoLoad property has been enhanced to now require a LoadConfig object, see http://www.coolite.com/forums/Topic5610-7-1.aspx
Example (Old)
<ext:Panel ID="Panel1" runat="server" Title="Parent" Height="200" AutoLoad="Child.aspx" />
Example (New)
<ext:Panel ID="Panel1" runat="server" Title="Parent" Height="200"> <AutoLoad Url="Child.aspx" /> </ext:Panel>
The change also affects the .AutoLoadIFrame property.
Example(Old)
<ext:Panel ID="Panel1" runat="server" Title="Parent" Height="200" AutoLoadIFrame="http://www.google.com/" />
Example (New)
<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)
<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" />
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" 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
<ext:Button ID="Button1" runat="server" Text="Click Me"> <AjaxEvents> <Click OnEvent="Button1_Click" ViewStateMode="Include" /> </AjaxEvents> </ext:Button>
The ViewStateMode can also be set at the Page level by setting AjaxViewStateMode="Include" on the ScriptManager.
Example
<ext:ScriptManager ID="ScriptManager1" runat="server" AjaxViewStateMode="Include" />
The AjaxViewStateMode property can be set at the Session level.
Example
Session["Coolite.AjaxViewStateMode"]
The AjaxViewStateMode can be set at the Application level.
Example
Application["Coolite.AjaxViewStateMode"]
The AjaxViewStateMode can also be set in Application wide from within the web.config.
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.
--
Geoffrey McGill
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
|
|
|
|