Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid.setSelectionType(SelectionStyle.SINGLE);

    Hello,
    I am calling TreeGrid.setSelectionType(SelectionStyle.SINGLE);
    but still my TreeGrid is able to select multiple TreeNodes (like SelectionStyle.MULTIPLE)
    Am I doing something wrong?

    #2
    Not clear. Post a standalone test case if you think you may have found a bug.

    Comment


      #3
      public class TreeGridMyBooks extends TreeGrid
      {
      public TreeGridMyBooks ()
      {
      setShowRoot (false);
      setSelectionType(SelectionStyle.SINGLE);
      }
      }

      public class PanMyBooks extends VLayout
      {
      private TreeGridMyBooks m_treeGridBooks;

      public PanMyBooks ()
      {
      m_treeGridBooks = new TreeGridMyBooks();
      addMember (m_treeGridBooks);
      }
      }

      but still I am able to select many TreeNodes simultaneously

      Comment


        #4
        Hi Drakator,

        A standalone test case is one that we can compile and run without making any changes. Posting such a test (along with the version you're running in) makes it clear whether this is a framework bug or a problem in your application. Thanks.

        Comment

        Working...
        X