-
Sencha User
Answered: CheckboxSelectionModel with cellselect listener
Trying to have a checkboxSelectionModel with a cellselect listener or a rowselect and be able to determine which column the user selected. I want different actions for each column but I want the little checkbox thingy.
Any suggestions? Thanks, Dani
-
Best Answer Posted by
skirtle
Selection can be performed using either a mouse click or key press. For row models, including checkbox selection, it only makes sense to talk about selected cells for a click, not a key press. This is why those selection models cannot give you this information themselves. You should consider how key-based selection impacts upon your requirements.
I should emphasize that CheckboxModel is a selection model. You should think of it as little more than a glorified RowModel. If what you want is a just a checkbox, not a selection model, then there are other ways to get that.
If you still want to know which cell is clicked you can find the relevant information in this thread:
http://www.sencha.com/forum/showthread.php?144666
I also suggest you take a look at:
http://docs.sencha.com/ext-js/4-0/#!....column.Action
-
Selection can be performed using either a mouse click or key press. For row models, including checkbox selection, it only makes sense to talk about selected cells for a click, not a key press. This is why those selection models cannot give you this information themselves. You should consider how key-based selection impacts upon your requirements.
I should emphasize that CheckboxModel is a selection model. You should think of it as little more than a glorified RowModel. If what you want is a just a checkbox, not a selection model, then there are other ways to get that.
If you still want to know which cell is clicked you can find the relevant information in this thread:
http://www.sencha.com/forum/showthread.php?144666
I also suggest you take a look at:
http://docs.sencha.com/ext-js/4-0/#!....column.Action
-
Sencha User
Thanks for you help - greatly appreciated.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules