1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    1
    Vote Rating
    0
    neerajkumar is on a distinguished road

      0  

    Question Unanswered: How to make a Readonly Checkbox & Combobox

    Unanswered: How to make a Readonly Checkbox & Combobox


    Hi All

    I want checkbox to behave as readonly, so for that I made it as disabled, but due to this on form submission, checkbox value is not getting submitted.

    I tried for readOnly config also, but its not working as expected, its not making checkbox as readOnly.

    I also want the same behavior with combobox also.

    Please let me know, how to implement this.

    Thanks
    Neeraj

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Location
    Netherlands
    Posts
    120
    Answers
    3
    Vote Rating
    4
    aacoro is on a distinguished road

      0  

    Default


    Did you tried this one?

    editable : BooleanFalse to prevent the user from typing text directly into the field; the field can only have its value set via selecting a value from the picker. In this state, the picker can also be opened by clicking directly on the input field itself.


    Defaults to: true

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Location
    Netherlands
    Posts
    120
    Answers
    3
    Vote Rating
    4
    aacoro is on a distinguished road

      0  

    Default


    or

    readOnly : Booleantrue to prevent the user from changing the field, and hides the trigger. Supercedes the editable and hideTrigger options if the value is true.


    Defaults to: false

Thread Participants: 1