Oct 18, 2017, 12:09 PM
[FIXED] [#1567] [4.6.0] CheckBox not visible after calling .hide() followed by .show()
Ext.Net version: 4.5.0
Hello,
When hiding and then showing a CheckBox, the label is displayed again but the checkbox itself isn't. We discovered this issue when upgrading from 4.4.0 to 4.5.0. This page demonstrates the issue:
Best regards,
Raphael
Hello,
When hiding and then showing a CheckBox, the label is displayed again but the checkbox itself isn't. We discovered this issue when upgrading from 4.4.0 to 4.5.0. This page demonstrates the issue:
<%@ Page Language="C#" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagPrefix="ext" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<ext:ResourceManager runat="server" ScriptMode="Debug" />
<ext:Viewport runat="server" Layout="auto">
<Items>
<ext:Button runat="server" OnClientClick="#{TestBox}.hide();" Text="Hide" />
<ext:Button runat="server" OnClientClick="#{TestBox}.show();" Text="Show" />
<ext:Checkbox runat="server" ID="TestBox" FieldLabel="I am a checkbox" />
</Items>
</ext:Viewport>
</form>
</body>
</html>
First, click on the "Hide" button, and then on the "Show" button. The checkbox should be visible again, but it's not. This seems to happen in the method Ext.net.FieldNote.updateIndicators. As a workaround we have overriden the method to do nothing if the component is a checkbox (since we don't use indicators on checkboxes).Best regards,
Raphael
Last edited by fabricio.murta; Jun 15, 2018 at 6:47 PM.