FineUI 官方论坛
标题:
Window的Target只有在EnableIFrame=true才有效
[打印本页]
作者:
purplebolt
时间:
2013-10-29 23:03
标题:
Window的Target只有在EnableIFrame=true才有效
窗体 设置 EnableIFrame="true" 后, 第一次用客户端代码 点击打开 正常,再次点击后窗体内容空白,刷新后正常,不知道是我设置有问题,还是有Bug
第一次打开
[attach]3510[/attach]
第二次打开
[attach]3511[/attach]
下面是代码
<x:Window ID="WindowEdit" runat="server" Title="修改密码" IsModal="true" EnableClose="true"
Width="400px" Height="175px" Hidden="true" EnableIFrame="true">
<Items>
<x:SimpleForm ID="SimpleForm1" runat="server" ShowBorder="false" BodyPadding="10px"
LabelWidth="90px" EnableBackgroundColor="true" ShowHeader="false">
<Items>
<x:TextBox ID="txtOldPwd" Label="原密码" TextMode="Password" Required="true" runat="server">
</x:TextBox>
<x:TextBox ID="txtNewPwd" Label="新密码" TextMode="Password" Required="true" runat="server">
</x:TextBox>
<x:TextBox ID="txtNewPwd1" Label="重复新密码" TextMode="Password" Required="true" runat="server"
CompareControl="txtNewPwd" CompareOperator="Equal" CompareMessage="2次输入的密码不符,请检查!">
</x:TextBox>
</Items>
</x:SimpleForm>
</Items>
<Toolbars>
<x:Toolbar ID="Toolbar1" runat="server" Position="Footer">
<Items>
<x:Button ID="btnSave" Text="保存" Type="Submit" ValidateForms="SimpleForm1" ValidateTarget="Top"
runat="server">
</x:Button>
<x:Button ID="btnCancel" runat="server" Text="取消" EnablePostBack="false">
</x:Button>
</Items>
</x:Toolbar>
</Toolbars>
</x:Window>
==========
打开窗体代码
//定义客户端事件
lbEdit.OnClientClick = WindowEdit.GetShowReference();
同时窗体设置 IsModal="true" 不起作用
作者:
sanshi
时间:
2013-10-30 10:21
这个不是BUG。如果设置 EnableIFrame="true" 就要在Window里面加载 IFrame,而不应该设置 Items 属性
作者:
purplebolt
时间:
2013-10-30 10:41
收到,还是手册没看透,谢谢老大
作者:
小兵
时间:
2013-10-30 17:01
这个低级错误,吧博主拉去挖煤,太不尊重头头的劳动成果了。
作者:
sanshi
时间:
2013-11-13 16:48
下个版本会对这种情况进行处理。多谢提出这个问题
-如果面板的EnableIFrame为true,则忽略Items属性(purplebolt)。
欢迎光临 FineUI 官方论坛 (https://www.fineui.com/bbs/)
Powered by Discuz! X3.4