How to expand a tree node when it's checked?

Posted on 2007-10-02
Last Modified: 2008-01-09
Hi experts,

How can I expand a tree node when it's check box is checked or unchecked?

I also have a JavaScript function that runs after any node on the tree is checked that checks/inchecks its child nodes

i.e. onclick="treeViewCheck(event)

and i need this to run AFTER the tree node is expanded  

 Thanks a million
Question by:kateL
    LVL 5

    Accepted Solution


    Write the code in AfterCheck event. The event will be handled in this event. Now write the expanding the selected node.

    Author Comment

    Hi srinivasbn,

    So do you know the code for expanding the selected node with javascript?

    I've been looking on the web for ages and can't find it
    LVL 5

    Expert Comment


    I am really sorry, i am not well in javascript.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now