1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    9
    Vote Rating
    0
    micahknox is on a distinguished road

      0  

    Default [2.??] Dataview select() Method

    [2.??] Dataview select() Method


    It appears the 2nd parameter [keepExisting] passed to the function select() for a Dataview does not actually work if you pass in a false.

    Thanks.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    92
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    'does not actually work' is not a very good problem description.

    Please provide all relevant information as described here.

  3. #3
    Ext User
    Join Date
    Oct 2008
    Posts
    9
    Vote Rating
    0
    micahknox is on a distinguished road

      0  

    Default Better Description

    Better Description


    Based on the API documentation, I would expect that if I pass in a 'false' for the [keepExisting] option, any currently selected records would then be deselected leaving only the one I am selecting by calling the select() method. Therefore if I use the getSelectedRecords() method of a Dataview object, I should only see one record in the returned array because I am always setting [keepExisting] to false.

    Does this clarify the issue?

    Thanks.

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    That is how it works. Can you post a test case showing where it doesn't behave in that way? Thanks.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

Thread Participants: 2