on 03-23-2011 4:23 PM
Hi friends,
I have a tree with 1 node and 2 treenodetypes.
There is 1 treenodtype = superclass and the childreen = class.
Both are filled by supply function.
No lead selection is set in the context for both.
It works fine under normal circumstances.
No I have added a refresh button there I can refresh the tree.
When I have opend a couple ot leaves in the tree I push
the refresh button and data are refreshed and the leaves are closed.
Now I open a leave and press a leave in the lower level I get short dump
complaining the missing lead selection.
When I set the lead selection in the context it works.
But when I use the lead selection, a leave is marked at the first
opening of the tree and when I press the marked leave, I get no data.
Is there a way to avoid either to set the lead selection or to get data at the first
press on the leave?
It only happens in a older version, like 7.0.
Thanks in advance.
Rg. Jimbob
Are you talking about the Initialize Lead selection property in context node ? I would not change that.
when you fill the tree , i would just set the node->set_lead_selection_index( -1 ). by this you force the user to select a leaf to select and trigger the supply function for loading the children.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.