1. #1
    Sencha User
    Join Date
    Jul 2011
    Location
    Northern Virginia
    Posts
    6
    Vote Rating
    0
    dailey1000 is on a distinguished road

      0  

    Default Answered: CheckboxSelectionModel with cellselect listener

    Answered: CheckboxSelectionModel with cellselect listener


    Trying to have a checkboxSelectionModel with a cellselect listener or a rowselect and be able to determine which column the user selected. I want different actions for each column but I want the little checkbox thingy.
    Any suggestions? Thanks, Dani

  2. Selection can be performed using either a mouse click or key press. For row models, including checkbox selection, it only makes sense to talk about selected cells for a click, not a key press. This is why those selection models cannot give you this information themselves. You should consider how key-based selection impacts upon your requirements.

    I should emphasize that CheckboxModel is a selection model. You should think of it as little more than a glorified RowModel. If what you want is a just a checkbox, not a selection model, then there are other ways to get that.

    If you still want to know which cell is clicked you can find the relevant information in this thread:

    http://www.sencha.com/forum/showthread.php?144666

    I also suggest you take a look at:

    http://docs.sencha.com/ext-js/4-0/#!....column.Action

  3. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,499
    Answers
    527
    Vote Rating
    283
    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


    Selection can be performed using either a mouse click or key press. For row models, including checkbox selection, it only makes sense to talk about selected cells for a click, not a key press. This is why those selection models cannot give you this information themselves. You should consider how key-based selection impacts upon your requirements.

    I should emphasize that CheckboxModel is a selection model. You should think of it as little more than a glorified RowModel. If what you want is a just a checkbox, not a selection model, then there are other ways to get that.

    If you still want to know which cell is clicked you can find the relevant information in this thread:

    http://www.sencha.com/forum/showthread.php?144666

    I also suggest you take a look at:

    http://docs.sencha.com/ext-js/4-0/#!....column.Action

  4. #3
    Sencha User
    Join Date
    Jul 2011
    Location
    Northern Virginia
    Posts
    6
    Vote Rating
    0
    dailey1000 is on a distinguished road

      0  

    Default


    Thanks for you help - greatly appreciated.