Results 1 to 3 of 3

Thread: [6.7.0 classic] Checkbox setValue() does not work for 'trueish' strings

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2016
    Location
    Brazil
    Posts
    137

    Default [6.7.0 classic] Checkbox setValue() does not work for 'trueish' strings

    According to the documentation: https://docs.sencha.com/extjs/6.7.0/....Checkbox.html

    These values should be accepted in the checkbox:
    - true
    - 'true'
    - '1'
    - 'on'

    But only the first value in the list actually checks a checkbox field when provided. All others will uncheck it (or keep it unchecked).

    To reproduce it, just change lines 42-44 in the example usage fiddle to use the "claimed" string representation that would check it, and see how it doesn't when the "Select All" button is clicked in the fiddle.

    One fiddle based on that would be this:

    Now I'm not sure the docs should be updated, or Ext JS should be fixed to support that (again, maybe).

    At some point it seems it existed a setChecked() method as I could see by a thread here from about 2010 but well, that seems to be in the past.
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.

    Thanks again,

    Michele


  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569

    Default

    Hello Fabricio,

    Try to comment the inputValue config and observe the behavior.Config "inputValue" overrides the possible values of checkbox(except the true or 'true').

    Regards,
    Kumar
    Sencha Support.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •