Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Problem with o_item.select() when depth > 1
ukmoths
Junior Member

Posts: 2
Registered: 1/19/2006
Member Is Offline
posted on 1/19/2006 at 11:30 PM Reply With Quote
Problem with o_item.select() when depth > 1


Hi,

I'm having a problem with the o_item.select() method for items where the depth is greater than 1.

I'm using the code from openItemByCaption, with modification to select the found item.

It works fine if the item's n_depth is less than 2, but at depth 2 it returns the error 'Object doesn't support this property or method'.

I've also tried o_tree.select(o_item.n_id) with the same results.

Am I missing something obvious?

Regards,
Ian.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 1/20/2006 at 12:02 PM Reply With Quote

Documented openItemByCaption function openes item's parent nodes before select it - so it should not cause the error. If you removed some functionality make sure the item is inited before call it's select method
//for v1.3
var o_state = o_item.state();
alert(o_state.inited);
To init the item you should open all its parents. See API examples.
View User's Profile View All Posts By User U2U Member
ukmoths
Junior Member

Posts: 2
Registered: 1/19/2006
Member Is Offline
posted on 1/21/2006 at 09:05 AM Reply With Quote

Thanks,

I was selecting the item before the parent node was opened. I moved the select() call after this and now it's just fine!

Regards,
Ian.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004