State in cookie problem....

  1. #1

    State in cookie problem....

    Hi!
    I have page with GridPanel and window. Both of controls have Stateful="false"
    My script manager, grid and window definitions:

        <ext:ScriptManager ID="DefaultScriptManager" runat="server" AjaxViewStateMode="Exclude"
            StateProvider="Cookie" />
            
            
    <ext:GridPanel ID="GridPanelRegionList" runat="server" Title="Lista regionów" StoreID="StoreRegionList"
                Height="600" Header="false" Frame="false" StripeRows="true" EnableColumnResize="true"
                SelectionMemory="Enabled" Stateful="false">
    
     <ext:Window ID="windowRegionEdit" runat="server" Icon="House" Title="Edycja regionu"
            Center&#111;nload="true" Modal="true" Resizable="false" Show&#111;nload="false" Width="500"
            Height="145" Stateful="false">
    The problem is that sometimes application creates cookies that are connected with those controls.
    For example I open window, change window position and press F5....
    Did I forget about something? I want only 2-3 grids saves their settings in cookie,
    but now often I got logged out because of cookie number (20) limit exceeding...
    Mrozik
  2. #2

    RE: State in cookie problem....

    I found solution - I had to override initState and saveState:

            <CustomConfig>
                <ext:ConfigItem Name="initState" Value="Ext.emptyFn" Mode="Raw" />
                <ext:ConfigItem Name="saveState" Value="Ext.emptyFn" Mode="Raw" />
            </CustomConfig>
    Is there a solution to set this behavior dafault for Window And GridPanel and enable cookie state management only for choosen controls?

Similar Threads

  1. More options for Cookie Provider?
    By knave in forum 1.x Help
    Replies: 1
    Last Post: Sep 17, 2011, 10:34 AM
  2. [CLOSED] Cookie Provider - how to limit cookie size?
    By voipswitch in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Aug 12, 2011, 1:47 PM
  3. [CLOSED] Saving grid state using CookieProvider - problem
    By voipswitch in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 11, 2011, 12:44 PM
  4. Problem of Radio State
    By gdboy2002 in forum 1.x Help
    Replies: 2
    Last Post: Nov 26, 2010, 12:41 AM
  5. Cookie StateProvider
    By Timothy in forum 1.x Help
    Replies: 0
    Last Post: Jun 26, 2008, 6:02 PM

Posting Permissions