[CLOSED] ext Window Showing Problem

  1. #1

    [CLOSED] ext Window Showing Problem

    Hi

    First of all I want to thank you for the great efforts you are putting in such wonderful and cool suite.
    I have a problem and maybe not closely related to the Coolite suite but this is the first time I encounter this problem during using the suite. However, I'm using a ViewPort Control and added 3 buttons to the Panel in the North region, now one of the buttons is used to show a Window Control, I add the following code:
        
    
    
    
    <body>
    <form id="form1" runat="server">
    
    
    .
    .
    .
    <ext:Button runat="server" CommandArgument="" CommandName="" Icon="Find" IconCls="icon-Find"
    
    
    OnClientClick="#{Window2}.show();" Text="Filter" ID="ctl35">
    
    
    </ext:Button>
    .
    .
    .
    
    
    </form>
    
    
    </body>
    and when I run the page I get the following error: Input String was not in a correct format.
    i tired using this code:
    <ext:Button runat="server" CommandArgument="" CommandName="" Icon="Find" IconCls="icon-Find"
    
    
    OnClientClick="Window2.show();" Text="Filter" ID="ctl35">
    and it worked fine but it only works once, meaning that a post back must occur in order to be able to show the window again.

    Thanks for your Attention.
    Regards,
    Yaser
  2. #2

    RE: [CLOSED] ext Window Showing Problem

    Hi*Yaser,

    It appears the code sample you posted is correct, although a possible cause of the problems may be because of a JavaScript error getting thrown somewhere.*

    Can you post a full (simplified) .aspx sample demonstrating how to reproduce the error?




    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] ext Window Showing Problem

    Hi Geoffrey,

    Thanks for your reply. I discovered where the problem is, in the Window control, the Close Action Property must be set to Hide instead of Close. In this way no post back is required to re initialize the control. Is this the normal behavior of the Window Control? Thanks for your support.
  4. #4

    RE: [CLOSED] ext Window Showing Problem



    Hi Yaser,

    If CloseAction="Close" is set on the <ext:Window>, the Window will be destroyed when closed. Once destroyed the Window will not be available again client-side using JavaScript until recreated on a postback.

    If CloseAction="Hide" then the Window will be hidden when closed and not destroyed. If hidden, the Window can still be used within other JavaScript functions/logic.

    The default value of the CloseAction property has changed in the v0.6 release from "Close" to "Hide". Please see Item #2 in the following v0.6 breaking changes - http://forums.ext.net/showthread.php...1404-12-1.aspx

    Hope this helps.
    Geoffrey McGill
    Founder
  5. #5

    RE: [CLOSED] ext Window Showing Problem

    Hi Geoffrey,
    Thanks for your explanation, and that is what I thought when I noticed the Close Action Property in my project. That was helpful and I'll make sure to read the breaking changes in v0.6. Thanks again.

Similar Threads

  1. [CLOSED] Popup window not showing Completely
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 11, 2011, 5:03 PM
  2. [CLOSED] Javascript error when showing window (bug?)
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 25, 2010, 6:40 PM
  3. Replies: 0
    Last Post: May 30, 2010, 6:56 PM
  4. [CLOSED] Memory Leak in IE 6/7/8 when showing window with iframes
    By jchau in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 09, 2009, 9:56 AM
  5. Bug when showing a window maximized
    By Jurke in forum Bugs
    Replies: 0
    Last Post: Oct 29, 2008, 12:56 PM

Posting Permissions