1. #1
    Sencha User env0ke's Avatar
    Join Date
    Apr 2011
    Posts
    57
    Answers
    2
    Vote Rating
    1
    env0ke is on a distinguished road

      0  

    Question Answered: "Check" event for checkbox

    Answered: "Check" event for checkbox


    Hello,

    In docs i find event "change" for checkbox and it worked. But i need event for check/uncheck. Not found it in docs.

  2. Why is it not just this?

    Code:
    change: function(checkbox, value) {
        if (value) {
            doFiltering()
        }
        else {
            clearFiltering();
        }
    }

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,592
    Answers
    541
    Vote Rating
    323
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    What would it do that change doesn't do?

  4. #3
    Sencha User env0ke's Avatar
    Join Date
    Apr 2011
    Posts
    57
    Answers
    2
    Vote Rating
    1
    env0ke is on a distinguished road

      0  

    Question


    skirtle, for example:
    1. i have a grid with toolbar
    2. in toolbar i have checkbox
    3. checkbox - it's a filter for data in grid
    Events:
    1. If checkbox checked - data filtered in grid
    2. If checkbox is unchecked - data is not filtered
    Default state for checkbox - unchecked (data not filtered).

  5. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,592
    Answers
    541
    Vote Rating
    323
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Why is it not just this?

    Code:
    change: function(checkbox, value) {
        if (value) {
            doFiltering()
        }
        else {
            clearFiltering();
        }
    }

  6. #5
    Sencha User env0ke's Avatar
    Join Date
    Apr 2011
    Posts
    57
    Answers
    2
    Vote Rating
    1
    env0ke is on a distinguished road

      0  

    Default


    really, worked.

Thread Participants: 1

Tags for this Thread