1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    208
    Answers
    4
    Vote Rating
    -2
    xjscrafter can only hope to improve

      0  

    Default Unanswered: Why does clicking icon in grid panel actioncolumn not select the row?

    Unanswered: Why does clicking icon in grid panel actioncolumn not select the row?


    I have a grid panel with an actioncolumn.

    There is an icon in the actioncolumn, and its click handler works fine.

    But when I click the icon, in the click handler I want to access the selected row, but it seems no row is selected.

    Is this expected? Do I need to manually set the selected row when an actioncolumn icon is clicked?

  2. #2
    Sencha User
    Join Date
    Nov 2013
    Posts
    208
    Answers
    4
    Vote Rating
    -2
    xjscrafter can only hope to improve

      0  

    Default


    This seems to work, but why does the row not get selected when that row's actioncolumn icon gets clicked? Doesn't make sense.

    Code:
    grid.getSelectionModel().select(record);

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,647
    Answers
    431
    Vote Rating
    583
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Sencha User
    Join Date
    Nov 2013
    Posts
    208
    Answers
    4
    Vote Rating
    -2
    xjscrafter can only hope to improve

      0  

    Default


    Thanks Evan. Default is true, so guess there is some rationale to that.

Thread Participants: 1