PDA

View Full Version : [CLOSED] Ext.net.Notification



supera
Mar 18, 2013, 7:39 PM
Hi!

I'm creating a notification window with 'header' parameter as false.

Is possible show header after notification was shown (and close button)?

Thanks for your help!

Baidaly
Mar 18, 2013, 8:54 PM
Hello!

Ext.net.Notification uses Ext.window.Window and you can use getHeader method to change it. http://docs.sencha.com/ext-js/4-2/#!/api/Ext.panel.Panel-method-getHeader

supera
Mar 19, 2013, 12:24 PM

Daniil
Mar 19, 2013, 3:06 PM
Maybe, the updateHeader method can help (please note that it is a private method).

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>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:Window ID="Window1" runat="server" Header="false" />

<ext:Button
runat="server"
Text="Show Header"
Handler="App.Window1.header = true;
App.Window1.updateHeader()" />
</form>
</body>
</html>

supera
Mar 20, 2013, 12:27 PM
Hi Daniil!!!

Works very fine... thanks a lot.