Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    259
    Answers
    4
    Vote Rating
    -10
      0  

    Default 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
    259
    Answers
    4
    Vote Rating
    -10
      1  

    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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,968
    Answers
    721
    Vote Rating
    931
      2  
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #4
    Sencha User
    Join Date
    Nov 2013
    Posts
    259
    Answers
    4
    Vote Rating
    -10
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •