View Full Version : Prevent selection in grid list (custom draw)

25 Feb 2010, 12:11 PM
I have the following code inside a custom renderer method for a GridPanel:

buff = "<div style='color: red'>" + buff + "</div>";

Very simple and effective done inside a conditional, so only certain items in the list are hilighted red.

However, doing so has made the item 'selectable' at least in IE, how do I disable the selection from occuring in IE? I have tried applying the class="x-unselectable" however this had no effect, again in IE 7/8 anyways.

Any ideas? Not critical, just annoying.


25 Feb 2010, 12:43 PM
try wrapping it in a span insead of div.

25 Feb 2010, 1:09 PM
I tried that initially actually, no dice. Stupid IE always has to be different. :P


25 Feb 2010, 1:23 PM
I think the CSS styles can by applied to the cell in the renderer. Take a look at the arguments being sent to it, I think one is "meta", which you can specify styles.