PDA

View Full Version : Default checkboxlistview how keep the selected style when more than one item is check



diegolovison
13 Dec 2010, 11:19 AM
http://www.sencha.com/examples/explorer.html#checkboxlistview

check the first item
check the sencond item

Only the checkbox is checked - is ok

I would like change the behavour.
when one item is checked, add the selected style...

like when selected one item using checkbox on grid component...

is possible?

thanks

sven
13 Dec 2010, 11:22 AM
http://www.sencha.com/examples/explorer.html#checkboxlistview

check the first item
check the sencond item

Only the checkbox is checked - is ok

I would like change the behavour.
when one item is checked, add the selected style...

like when selected one item using checkbox on grid component...

is possible?

thanks

How is this related to the topic you posted this in? I will move it out to an own thread.

sven
13 Dec 2010, 11:24 AM
You need to change ListViewSelectionModel and add the feature there. At the moment it is not responding to anything when the input element it the target. You need to add custom actions for this case.

diegolovison
13 Dec 2010, 11:27 AM
i post wrong.. should be one thread.. thanks to create one...


hmmm.. you dont think that is a great functionally on checkboxlistview... a default implementation about this?

sven
13 Dec 2010, 11:30 AM
hmmm.. you dont think that is a great functionally on checkboxlistview... a default implementation about this?
No because it would be a braking change in functionality.

diegolovison
13 Dec 2010, 11:38 AM
in gxt 3? :D

sven
13 Dec 2010, 11:39 AM
in gxt 3? :D

Also no plans for this at the moment. This is easy to add in a custom subclass.

diegolovison
13 Dec 2010, 11:40 AM
ok...
thanks ;)