GWT Cell List Issue

49 views
Skip to first unread message

Santhosh Kumar

unread,
Feb 13, 2012, 6:35:10 AM2/13/12
to Google Web Toolkit
Hi,

We have CellList on our application within main panel.When we use
shift key to select multiple values in Cell List,the entire screen get
selected instead of the the items in cell list.Is there are solution
for this?

Regards
Santhosh

Michael Cohen

unread,
Jun 28, 2012, 3:23:10 PM6/28/12
to google-we...@googlegroups.com
So I figured out a workaround today.
Add this to your code to workaround this problem in IE:

    private native static void disableDefaultSelection(Element e)/*-{
        e.ondrag = function () { return false; };
        e.onselectstart = function () { return false; };
        e.style.unselectable="on"
    }-*/;

After instantiating the CellList, just call disableDefaultSelection(cellList.getElement());

-Mike


in Firefox I think there is an analogous property to set....




On Thursday, June 28, 2012 9:25:00 AM UTC-4, Michael Cohen wrote:
Same problem here - when running under IE.  Did you ever find a solution or workaround?
Reply all
Reply to author
Forward
0 new messages