PDA

View Full Version : Component with close button



powerPT
Jun 04, 2008, 12:43 PM
Hi folks!

First of all, excelent toolkit!

Now, I little help: I have a div, inside that I wanna some component to allow close the component. I tested with "Panel" and "Window", first I donīt see any property to close panel; second, it position to center of webpage!

Thanks,
Diogo

geoffrey.mcgill
Jun 04, 2008, 9:49 PM
Hi Diogo,

I think you want to "Collapse" the Window or Panel?

The following code demonstrates how to Collapse/Expand a Window or Panel.

Example


// Client-side
Window1.collapse();

Window1.expand();

//Server Side
Window1.Collapse();

Window1.Expand();


By default the <ext:Window> will "Show" in the center-center of the Page on initial Page_Load. The following example demonstrates how to position the Window 100px from the Top-Left corner of the page.

Example


<ext:Window
ID="Window1"
runat="server"
Center&#111;nload="False"
PageX="100px"
PageY="100px"
/>

The above code samples are created using the 0.5 release.