13 Nov 2008 8:51 PM #1
[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.
13 Nov 2008 10:37 PM #2
- Join Date
- Mar 2007
- The Netherlands
- Vote Rating
14 Nov 2008 6:09 AM #3
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?
15 Nov 2008 3:45 PM #4
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.