Categories | Question details Back To List | ||
TreeGrid behavior Referring to my previous question in http://dhtmlx.com/docs/products/kb/index.shtml?cat=recent&q=1170 I have tested the usage of addRowAfter or addRowBefore commands. Those commands work better, but I have found one case where the usage of addRowBefore leads to the same behavior that I described in my last question: If you use addRowBefore to add an element before the first element on level 0, again the id is added to the end of the list instead of inserted at the first position. Applying that case to my previous example would be: Assume there are 2 elements in the TreeGrid, both on level 0: id2 id3 The call "treegrid.getSubItems(0);" will give you the list "id2,id3" as expected. Then insert another element id1 before id2: id1 <-- new id2 id3 Now "treegrid.getSubItems(0);" gives you the list "id2,id3,id1" where the correct order again is screwed up... Strangely this behavior does not show up if you apply the example to a level higher than 0. Could you please check if there is another bug? And if so, could you inform me about the bug fix, so that I can contact you to get the updated code? Answer posted on Nov 12, 2007 02:14 Issue confirmed, actually it is was caused by same reason as previously reported bug with addRow on top level, and already fixed. Fix will be released as part of next build. If you need fix ASAP - please contact directly at support@dhtmlx.com , and provide your ref. number - we will send you updated code. |