Version 0.7.0 - BREAKING CHANGES
*NEW - Coolite Toolkit Version 0.7 now available for DOWNLOAD. See also Examples Explorer.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
Version 0.7.0 - BREAKING CHANGES
Subscribe
Last Login: Today @ 1:16:07 PM
Posts: 1,649,
Posted 10/14/2008 8:36:02 AM

Group: Core Development Team

  1. Renamed <Content> to <Body>, see http://coolite.com/forums/Topic3059-7-1.aspx
  2. 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>

  3. 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"
        />

  4. The <UserParams> property of an AjaxEvent was renamed to <ExtraParams>.

  5. 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().

  6. 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>

  7. The previous "AjaxResponse" class has been renamed to "Response". Functionality unchanged.

  8. The previous "ResponseObject" class has been renamed to "AjaxResponse".

  9. The <ext:Store> BeforeAjaxPostBackEventArgs was renmaed to BeforeAjaxEventArgs.

  10. The <ext:Store> AfterAjaxPostBackEventArgs renamed to AfterAjaxEventArgs.
--
Geoffrey McGill
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 1:30pm