[FIXED] [#1569] [4.5.1] Checkbox disappears after hiding indicator

  1. #1

    [FIXED] [#1569] [4.5.1] Checkbox disappears after hiding indicator

    Hi all,
    in V4.5 for checkboxes if I hide the indicator the checkbox disappears:
    var toggleIndicator = function (ck) {
        if (ck.indicatorHidden)
            ck.showIndicator();
        else
            ck.hideIndicator();
    }
    <ext:Button runat="server" Text="Toggle checkbox indicator">                            
    <Listeners>                                
    <Click Handler="toggleIndicator(App.ck1);" />                            
    </Listeners>                        
    </ext:Button>                        
    <ext:Checkbox runat="server" LabelWidth="250" 
      ID="ck1" IndicatorIcon="Help" FieldLabel="Checkbox disappears after hiding indicator" />

    Thank you,
    Riccardo.
  2. #2
    Hi,
    is there an available workaround for this behavior?
  3. #3
    Hello Riccardo!

    Sorry for the delay! We're going to review this further and at least provide you a way to overcome this issue until it is fixed either in Sencha or in Ext.NET! I'll come back to you soon with the reply.
    Fabrício Murta
    Developer & Support Expert
  4. #4
    Hello again, Riccardo!

    Just as a quick workaround you can use ck.inputEl.hide() and ck.inputEl.show(). At least in your test case, it works very well.
    Fabrício Murta
    Developer & Support Expert
  5. #5
    Hello once again, Riccardo!

    We've just applied the fix within our code. As the checkbox is a fixed width component there's not much sense for it to do all indicator functions from other fields (as it is defined in Ext.form.field.Field, which Ext.form.field.Checkbox inherits from), we've just applied an approach much similar to the approach suggested above.

    We've committed the change to our git sources repository and it is available for you to build and check whether the fix works for you. Meanwhile, we've logged this issue under github's #1569, just for the record.

    We'd really appreciate to hear your feedback about the fix, but don't worry if you want to just go with the alternative shared above.
    Fabrício Murta
    Developer & Support Expert
  6. #6
    Thank you, Fabricio!
    At the moment I think we'll wait for the release of V4.5.1 in NuGet and send a feedback just after the update.

    Riccardo.

Similar Threads

  1. Replies: 5
    Last Post: Sep 26, 2017, 7:26 AM
  2. Replies: 10
    Last Post: Nov 24, 2015, 6:54 PM
  3. Replies: 1
    Last Post: Aug 18, 2015, 3:04 PM
  4. [CLOSED] Problem vertical align indicator icon in checkbox
    By xeo4.it in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 29, 2013, 9:58 AM
  5. Replies: 0
    Last Post: Sep 17, 2012, 3:03 PM

Posting Permissions