Results 1 to 4 of 4

Thread: [2.??] Dataview select() Method

  1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    9
    Vote Rating
    0
      0  

    Default [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
    118
      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
      0  

    Default 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
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      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
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

Posting Permissions

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