node.select() results in 'undefined' is null or not an object

4 posts, 0 answers
  1. Bo
    Bo avatar
    3 posts
    Member since:
    Jun 2011

    Posted 02 Jun 2011 Link to this post

    I have an issue where we are using the load on demand mode to retreive nodes on a tree expand.  The tree is hosted inside of a radcombobox.  Node expand works as expected as well as node selection.  However, when the combo closes we collapse the root node, clear it's nodes and set expand mode back to webservice so the webservice will be called again on future expands.

    However, after doing this I want to set the selected node in the list of those returned from the webservice if I have a match.  The issue is I get an error "Line: 1185 Char 6 'undefined' is null of not an object.  In stepping into the telerik javascript it seems that a selected node is hanging around possibly but is not fully initialized.

    Anyone have any ideas or seen anything like this?
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 08 Jun 2011 Link to this post

    Hi Bo,

    It's expected that you won't be able to select a node, since you have cleared the child nodes of the root element.

    In case you want to select a particular node,this node should exist in the nodes collection of the RadTreeView.

    Greetings,
    Dimitar Terziev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Bo
    Bo avatar
    3 posts
    Member since:
    Jun 2011

    Posted 08 Jun 2011 Link to this post

    Dimitar,

    That's just it.  I can retrieve the node from the rad tree client side either though getAllNodes and findNodeByValue.  The node returned is not null.  However, attempting to perform a .select on it results in an error.

    Note that I'm performing the retrieval of the node client side after the tree has been reexpanded via the web service thus repopulating nodes that were cleared.
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 13 Jun 2011 Link to this post

    Hi Bo,

    Provide us with more information on the exact implementation of the client-side script used for node selection and also when exactly this script is executed.

    Kind regards,
    Dimitar Terziev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top