Mar 30, 2015, 2:52 PM
[CLOSED] Setting UI in behind code and keeping frame (rounded corners)
If I reset the UI in behind code I lose the rounded corners. Am I missing something?
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<html>
<script runat="server">
protected void ChangeUI(object sender, DirectEventArgs e)
{
UIPanel.UI = UI.Danger;
UIPanel.Update();
}
</script>
<head runat="server">
<title></title>
<style type="text/css">
</style>
<script type="text/javascript">
</script>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:Container runat="server" Width="400" Height="300" Layout="VBoxLayout" PaddingSpec="10 10 10 10" >
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Panel ID="UIPanel" runat="server" Title="UI from behind code" TitleAlign="Center" Frame="true" Flex="1" UI="Success" />
</Items>
</ext:Container>
<ext:Button runat="server" Text="Change UI" OnDirectClick="ChangeUI" />
</body>
</html>
Last edited by Daniil; Mar 31, 2015 at 5:36 PM.
Reason: [CLOSED]