PDA

View Full Version : [CLOSED] ext:Window position



RRD
Aug 21, 2013, 12:21 PM
I need to set ext:window position at the bottom of the page and width that equals page width. How to do that?

Daniil
Aug 21, 2013, 2:12 PM
Hi @RRD,

Please look at the example.

Example

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET v2 Example</title>

<script>
var onAfterRender = function (win) {
win.setWidth(Ext.getBody().getWidth());
win.show(null, function () {
this.alignTo(Ext.getBody(), "bl-bl");
});
};
</script>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:Window ID="Window1" runat="server" Hidden="true">
<Listeners>
<AfterRender Fn="onAfterRender" Delay="1" />
</Listeners>
</ext:Window>
</form>
</body>
</html>