[FIXED] [#1619] [4.8.0] setFieldLabel on a CheckBox hides it

  1. #1

    [FIXED] [#1619] [4.8.0] setFieldLabel on a CheckBox hides it

    Ext.NET version: 4.7.1

    Hello,

    When calling the setFieldLabel method of a checkbox, the checkbox becomes invisible:

    <%@ 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}.setFieldLabel('Updated label');" Text="Change field label" />
                <ext:Checkbox runat="server" ID="TestBox" FieldLabel="I am a checkbox" />
            </Items>
        </ext:Viewport>
    </form>
    </body>
    </html>
    Click image for larger version. 

Name:	before.png 
Views:	41 
Size:	1.8 KB 
ID:	25205
    Click image for larger version. 

Name:	after.png 
Views:	41 
Size:	1.5 KB 
ID:	25206

    Best regards and happy holidays,
    Raphael
    Last edited by fabricio.murta; Feb 19, 2019 at 4:58 AM.
  2. #2
    Hello @ilogsdev02!

    Thanks for taking your time to report this issue! It is related to the "special treatment" combo boxes needs with regards to field notes, albeit the feature not being used in the example.

    We've logged this under #1619 on github and will post an update here as soon as we have it fixed in our sources!

    As a work-around this issue, just call the checkbox's show() method right after calling setFieldLabel(). Alternatively, just revert the mistake by calling #{TestBox}.innerWrapEl.setStyle('display'); to the field. Either way should work, but the second is specific and should perform faster if there are lots of checkboxes on screen.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello again @ilogsdev02!

    We've just fixed the issue; the fix will make it to the next, 4.8.0 Ext.NET version!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 7
    Last Post: Sep 19, 2017, 11:27 PM
  2. Replies: 1
    Last Post: Jan 30, 2014, 5:38 AM
  3. Replies: 2
    Last Post: Oct 08, 2012, 4:56 PM
  4. [FIXED] [0.8.2] CheckBox missing?
    By Timothy in forum Bugs
    Replies: 4
    Last Post: Oct 09, 2009, 10:21 AM
  5. [FIXED] [V0.6] CheckBox and Radio
    By Timothy in forum Bugs
    Replies: 2
    Last Post: Sep 16, 2008, 10:50 AM

Posting Permissions