Results 1 to 4 of 4

Thread: Cannot bind value to grid selection if multiSelect is true

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member cnelissen's Avatar
    Join Date
    Sep 2007
    Location
    California
    Posts
    226
    Vote Rating
    9
      0  

    Default Cannot bind value to grid selection if multiSelect is true

    Ext version tested:
    • Ext 5.0.0.736



    Browser versions tested against:
    • Firefox 28
    • Chrome 34.0.1847.116



    Description:
    If you set multiSelect to true on a grid panel, you cannot bind a value to gridPanel.selection.


    Steps to reproduce the problem:
    Here is a fiddle that demonstrates the bug: https://fiddle.sencha.com/#fiddle/5cn


    The result that was expected:
    Button should be enabled when a selection is made on the grid.


    The result that occurs instead:
    The button is not enabled.
    - Clint Nelissen

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,185
    Vote Rating
    1000
      0  

    Default

    This probably isn't something we'll support, at least not on the selection property. The intended use for that is to refer to properties of a single record. Perhaps if the grid also published something like selectionCount or hasSelections.
    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.

  3. #3
    Ext JS Premium Member cnelissen's Avatar
    Join Date
    Sep 2007
    Location
    California
    Posts
    226
    Vote Rating
    9
      0  

    Default

    Quote Originally Posted by evant View Post
    Perhaps if the grid also published something like selectionCount or hasSelections.
    That would certainly work as well... I think the use case is fairly common, and the alternative can add quite a bit of code if you are dealing with lots of grids and lots of buttons.
    - Clint Nelissen

  4. #4
    Sencha User Psychokrameur's Avatar
    Join Date
    Jun 2008
    Posts
    195
    Vote Rating
    19
      0  

    Default

    Apparently solved (Tested your fiddle with setting Ext. 5.1 Neptune)

Posting Permissions

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