dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [Flex] Missing Tree data.

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    9

    [Flex] Missing Tree data.

    Hello,
    I have component with Trees and I'm moving elements from one to another. I store data in dataProvider as XMLList with labelFiled="name" and itemRenderer as class, which expends one (thanks to that nodes and elements have checkboxes). I enabled moving mechanism between Trees just by enabling Tree's properties (dragEnabled="true" dragMoveEnabled="true" dropEnabled="true").

    Problem occurs when I try to get data from dataProvider, which has only elements. To get data I use command:
    Code:
    var xmlSource:String = new XMLList(this.treeDest.dataProvider).toString();
    If dataProvider has some nodes or some elements and nodes, its fine. But when data has only elements, I've got empty strings.

    I've tried to change command, but it has changed nothing or made it even worse. I also thought about namespaces in elements, that they mix up something, but it was dead end.

    Any ideas? I'ld apprecieate any of thoughts about this.

  2. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    9
    Ok, I've found an answer. I just shouldnt get data by refering to dataProvider from Tree. Instead, I have var, that stores all Tree data (and is referenced in dataProvider) and if I want to get or set data, I just refer to that var, insterad of whole dataProvider thing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center