[CLOSED] Can't get State-events to fire

  1. #1

    [CLOSED] Can't get State-events to fire

    I can't get the listeners StateRestore and StateSave to fire in the following code.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FrameSize.aspx.cs" Inherits="WebApplication1.FrameSize" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" StateProvider="Cookie" />
        <ext:Window runat="server" ID="Window1" Layout="FitLayout">
                <ext:Panel ID="Panel1" runat="server" Title="West" Stateful="true" StateEvents="resize">
                        <ext:Toolbar ID="Toolbar1" runat="server">
                                <ext:Button runat="server" ID="btnAdd" Text="Add" Icon="Add" />
                                <ext:Button runat="server" ID="btnCloseAll" Text="CloseAll" Icon="Tux" />
                        <StateRestore Handler="alert('StateRestore');" />
                        <StateSave Handler="alert('StateSave');" />
    Last edited by Daniil; May 02, 2012 at 4:44 PM. Reason: [CLOSED]
  2. #2

    For now, please replace
        <ext:ConfigItem Name="stateful" Value="true" Mode="Raw" />
  3. #3
    Works for now. Thanks.
  4. #4
    We have fixed it, revision #3980.

    Now this works
    Please note that the default value is false. So, to enable the stateful mechanism you should set up Stateful to true explicitly.

    Thanks for the report.

Similar Threads

  1. Replies: 3
    Last Post: May 03, 2012, 3:33 PM
  2. [CLOSED] Error on fire events on load controls
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Mar 23, 2011, 1:44 PM
  3. Replies: 15
    Last Post: Feb 03, 2011, 1:27 PM
  4. How to Use view state in coolite ajax events
    By kiran malgi in forum 1.x Help
    Replies: 1
    Last Post: Jul 28, 2010, 11:04 AM
  5. Don't fire events
    By yyyhxm1 in forum 1.x Help
    Replies: 0
    Last Post: Jun 03, 2010, 1:18 AM

Posting Permissions