Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 51
Registered: ‎07-15-2008
My Device: Not Specified

Problem with Tree Field setExpanded

hii

 

In my app there is a tree field with root node and 2 child nodes.One is expanded and other is leaf node.

 

Main

    --Child Node 1 

    --Child Node 2 (Expanded)

         --Child NODE 1 (child of child node 2 )

 

 

When i tried from bottom (Child NODE 1) , to setExpanded API tovalue false, it works fine for all child nodes except Main

and it gives me illegal Argument exception . I dnt know whts happening there.

 

Please guide me ....m i doing sumthing wrong here....

 

JDE 4.2.1

Simulator 8100 Pearl....

 

Thanks in advance 

 

BlackBerry Development Advisor
Posts: 14,952
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Problem with Tree Field setExpanded

I have been able to reproduce this issue and have reported it to our development team.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Posts: 5
Registered: ‎07-29-2010
My Device: Not Specified

Re: Problem with Tree Field setExpanded

I also had this problem. I was able to work around this by deleting all of the elements from the tree, re-adding them, then setting expanded to true or false. Kinda like fixing a broken arm with duct tape, but it avoided the Illegal Argument Exception. In my case I was trying to expand all and collapse all. I can post some code if you still need help.