-
2 Jun 2010 1:18 AM #1
setSelectionMode for CheckBoxSelectionModel doesn't work
setSelectionMode for CheckBoxSelectionModel doesn't work
Hi *,
in my grid i need a checkboxes for each row, so I'm using CheckBoxSelectionModel and setSelectionMode. Here my code:
The result is:Code:List<ColumnConfig> configs = new ArrayList<ColumnConfig>(); // Needed to insert a checkbox at begin of each search result final CheckBoxSelectionModel<ModelData> sm = new CheckBoxSelectionModel<ModelData>(); sm.setSelectionMode(SelectionMode.MULTI); configs.add(sm.getColumn()); configs.add(new ColumnConfig("kurzbezeichnung", "Kurzbezeichnung", 300));
checkboxproblem.png
And now i have 2 problems:
1. Select all checkbox is not working
2. I can check only one checkbox from the table, two or more isn't possible.
Can someone tell me, what i'm doing wrong?
Thanks in advance!
-
2 Jun 2010 3:43 AM #2
So, you looked at the examples right?
http://www.extjs.com/examples/explorer.html#gridplugins
There is one line, that you are probably missing. But this is only guessing because you have not posted a fully working testcsae:
Code:grid.addPlugin(sm);
-
2 Jun 2010 5:53 AM #3
Similar Threads
-
[SOLVED] RowExpander and CheckboxSelectionModel doesn't work in GroupingStore
By steffenk in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 19 Feb 2010, 3:45 AM -
Problem: CheckboxSelectionModel does not work
By Charlyva in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Dec 2007, 3:14 AM -
Form Json Submit doesn't work but the Load work
By dieyoudie in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 14 Dec 2007, 2:13 PM -
Code won't work in IE7, no JS errors, just doesn't work
By blackwaterdev in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 17 Sep 2007, 5:06 AM


Reply With Quote
