TreeView crashes with more than 8 items?

2 posts, 0 answers
    FENWICK avatar
    30 posts
    Member since:
    Jul 2010

    Posted 27 Feb 2013 Link to this post


    I've the same problem that this post (
     When I have more than 8 items, Drag&drop crashes on the "CumulativeValue" method in IndexTree class.

    I think that this problem due to the constructor of IndexTree class : 

    internal IndexTree(int capacity, double defaultValue)
              this.count = capacity;
              this.size = 8;
              while (this.size < capacity)
                  this.size = this.size << 1;
              this.tree = new double[this.size << 1];
              this.itemDefaultValue = defaultValue;

    When you drag an element, i think this element is temporary duplicated. So "size" property is smallest
    is there a trick to solve this problem  ?

    Thanks to your help.
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 01 Mar 2013 Link to this post

    Hi Jerome,

    Can you please send us a sample solution where we can test and reproduce this issue? That would greatly help us in getting to the bottom of the crash and suggesting a solution.

    Thank you in advance for your cooperation on the matter.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top