This is a migrated thread and some comments may be shown as answers.

TreeView crashes with more than 8 items?

1 Answer 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
FENWICK
Top achievements
Rank 1
FENWICK asked on 27 Feb 2013, 05:12 PM
Hi,

I've the same problem that this post (http://www.telerik.com/community/forums/silverlight/treelist/treelistview-crashes-with-more-than-8-items.aspx).
 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;
          this.Initialize(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.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 01 Mar 2013, 05:55 PM
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.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TreeView
Asked by
FENWICK
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or