[SOLVED] Problems with Window and Buttons
*NEW - Coolite Toolkit Version 0.7 now available for DOWNLOAD. See also Examples Explorer.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
[SOLVED] Problems with Window and Buttons
Subscribe
Last Login: 9/18/2008 6:08:02 PM
Posts: 21,
Posted 8/15/2008 9:09:35 AM

Group: Coolite Early Adopter
 Hi guys,

Since this new version i have a weird problem... I want to open a window when i click on a button but when i browse the page/site the window self open.


Here is a part of the code:


<ext:TabPanel ID="TabPanel1" runat="server" ActiveTab="0" Height="300px"
                        Plain="True" BodyStyle="padding:10px" ButtonAlign="Center">
                        <Tabs>
                            <ext:Tab ID="Tab1" runat="server" Title="Instructivo">
                                <Content>
                                <p>En este apartado tendr&aacute; una gu&iacute;a instructiva para el usuario...</p>
                                </Content>
                            </ext:Tab>
                            <ext:Tab ID="Tab2" runat="server" Title="Reportes por Fecha" Width="300">
                                <Content>
                                <div id="tabsSearch1">
                                <table class="tabsSearchTable1" cellspacing="4" width="40%">
                                <tbody>
                                <tr align="left" valign="top"><td>
                                <asp:Label ID="searchLabel1" runat="server" Text="Fecha Inicial:"></asp:Label>
                                </td>
                                <td>
                                <ext:DateField ID="DateField1" runat="server"></ext:DateField>
                                </td></tr>
                                <tr align="left" valign="top"><td>
                                <asp:Label ID="Label1" runat="server" Text="Fecha Final:"></asp:Label>
                                </td>
                                <td>
                                <ext:DateField ID="DateField2" runat="server"></ext:DateField>
                                </td></tr>
                                <tr align="left" valign="top"><td></td><td>
                                <asp:Button ID="searchButton1" runat="server" Text="Buscar" />
                                </td></tr>
                                </tbody>
                                </table>
                                </div>
                                    <ext:Window                                   
                                        ID="Window1"
                                        runat="server"
                                        Title="Resultados"
                                        Width="550px"
                                        Height="400px"
                                        BodyStyle="padding: 6px;"
                                        CloseAction="Hide"
                                        Collapsible="True"
                                        TriggerElement="searchButton1"
                                        AnimateTarget="searchButton1">
                                        <Content>
                                            <ext:Panel
                                                ID="Panel1"
                                                runat="server"
                                                Title="Reportes por Fecha"
                                                Height="400px"
                                                BodyStyle="padding: 6px;"
                                                AutoLoad="searchResult.aspx"/>
                                        </Content>
                                    </ext:Window>                                
                                </Content>
                            </ext:Tab>



Any tip?


NOTE: this was working before...
Last Login: Today @ 12:25:25 PM
Posts: 767,
Posted 8/15/2008 9:19:27 AM

Group: Core Development Team
 Hi GuS,

You should set Showonload="false" for the Window


--
Vladimir Shcheglov
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
Last Login: 9/18/2008 6:08:02 PM
Posts: 21,
Posted 8/15/2008 9:27:59 AM

Group: Coolite Early Adopter
 ups... Sorry... I've Missed that.... but before this was not happening.

Anyway, thanks Vladimir!!

Cheers.
Last Login: 9/18/2008 6:08:02 PM
Posts: 21,
Posted 8/15/2008 9:59:24 AM

Group: Coolite Early Adopter
 By the way, related to buttons i have problems using the button from coolite. When i click on it, whatever i open a window or just add a button, i have this response:

http://pastebin.com/m56cd8b87

Any tip about it?

Thanks


<ext:Button ID="Button1" runat="server" Text="Buscar"></ext:Button>
                                </td></tr>
                                </tbody>
                                </table>
                                </div>
                                    <ext:Window                                   
                                        ID="Window1"
                                        runat="server"
                                        Title="Resultados"
                                        Width="550px"
                                        Height="400px"
                                        BodyStyle="padding: 6px;"
                                        CloseAction="Hide"
                                        Collapsible="True"
                                        TriggerElement="Button1"
                                        AnimateTarget="Button1"
                                        Showonload="False">

Last Login: Today @ 3:28:10 PM
Posts: 1,652,
Posted 8/15/2008 10:52:29 AM

Group: Core Development Team
Hi Gus,

Just to elaborate on Vladimir's ShowOnLoad response above...

The ShowOnLoad property was changed/added with v0.5 and listed in the "Breaking Changes" (see #5). In the previous release(s) the <ext:Window> would not show by default, now it does, so to not show on page_load you must set the ShowOnLoad property to "false".

Hope this helps.
--
Geoffrey McGill
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
Last Login: 9/18/2008 6:08:02 PM
Posts: 21,
Posted 8/15/2008 11:28:57 AM

Group: Coolite Early Adopter
 Already fixed the window problem.... i am talking now about the Button problem....


EDIT: btw, it is possible to add more than one TriggerElement to a Window? Example, i want to have only one window, but wish to launch it with different buttons.


Thanks in advance.

Cheers.
« 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 7:03pm