View Full Version : Preventing deselecting from a DataView

7 May 2013, 8:12 AM

I have a DataView with template nodes that can be selected through dv.select(index).

There's a section of my DataView where there isn't a template node, and when the user clicks there, the node gets deselected.

Is there any way to prevent this from happening? So there always is a template node that's selected?

Thanks in advance.

EDIT: This person seemed to have the same question (http://www.sencha.com/forum/showthread.php?40715), but I don't have permission to access the page.

9 May 2013, 10:19 AM
Use the containerclick event of the dataview and return false :D