Results 1 to 2 of 2

Thread: using viewready event of dataview to modify dom

  1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    2

    Default using viewready event of dataview to modify dom

    Hi,

    I'm using the viewready event of the dataview in order to:

    * add click handlers for some checkboxes I rendered
    * modify some values (checked states, css) that were not included in the store used to render the checkboxes

    I debug the code and I saw that I was correctly modifying the values and attaching the click handlers. But as soon as I finished debugging my modification were cleared...

    Do you know what happened or which event I should use instead of viewready?

    Thanks in advance




  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,388
    Answers
    3997

    Default

    First thing I'd say is you don't have to add click handlers the way you are doing. You can use something like:

    Code:
    listeners : {
        element : 'el',
        delegate : 'input',
        click : function(e, t) {}
    }
    or

    Code:
    view.mon(view.getEl(), {
        delegate : 'input',
        click : function(e, t) {}
    });
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •