-
14 Apr 2011 6:06 AM #1
[CLOSED]Problem with Ext.selection.CheckboxModel
[CLOSED]Problem with Ext.selection.CheckboxModel
Here is the bug issue:
(maybe there is a better solution to solve this problem, however it discovers a bug ... here we go).
Create a Grid (myGrid) using a CheckboxModel as selModel, load 2 records in the Store ( Store A ) ( record A and B ). Now create a new store ( StoreB ), load 1 record into the store. On StoreB load event I do this to check if records loaded in StoreB is present in StoreA.
When the record B is found and selected, selectionModel.getSelected() also shows that the record is "technicly" and "visualy selected", BUT (HERE IS THE BUG!), when you click the checkbox for the row that seems to be selected, nothing happens (should have been unselected - when you click it the 2nd time, the record will be unselected (now it should have been selected again). I GUESS it's because the checkbox isn't set as checked when the row is selected.Code:StoreB.on('load', function(t, records, s) { var selectionModel = myGrid.getSelectionModel(); for(var i in records) { var check = StoreA.find('guid', records[i].data.guid); if(check >= 0) selectionModel.select(check); } })Last edited by urlund; 14 Apr 2011 at 6:10 AM. Reason: Hmm, for some reason the B (uppercase letter) turns into a smiley .... :S ... solved, B and ) gives a smiley :P
-
14 Apr 2011 3:38 PM #2
urlund -
Could you please create a full test case for us to run that illustrates the problem?
Thanks,Aaron Conran
@aconran
Sencha Architect Development Team
-
15 Apr 2011 12:44 AM #3
-
16 Apr 2011 1:57 PM #4
Seems that this have been fixed at some point (B3 maybe?), i'll open this if I discover the issue again

-
15 May 2011 10:52 AM #5
FYI: Problem solved.
The issue persisted in that I added a gridpanel to a window. When the window loaded the gridpanel didn't have focus so the first click I made was to focus the component. After that i could select/deselect the records.
Solution was:
Now i can select/deselect rows on first click.Code:myGrid.getStore().on('load', function() { myGrid.getView().focus(); }, this);
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-EXTJSIV-1257][B3] No renderer for Ext.selection.CheckboxModel
By eja40 in forum Ext:BugsReplies: 0Last Post: 15 Apr 2011, 9:40 AM -
[CLOSED] SimpleComboBox field binding problem with force selection
By dno in forum Ext GWT: Bugs (2.x)Replies: 5Last Post: 5 May 2010, 12:00 PM -
[CLOSED] [1.24] ComboBox value selection
By mordor in forum Ext GWT: Bugs (1.x)Replies: 6Last Post: 6 Jun 2009, 8:25 AM -
[CLOSED] Bug in ComboBox value selection?
By hbrands in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 27 Oct 2008, 8:43 AM -
[2.0??][CLOSED] GridPanel row selection
By JP_ExtJS in forum Ext 2.x: BugsReplies: 4Last Post: 26 Mar 2008, 11:58 AM


Reply With Quote