C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

How to select treenode by javascript?


Posted Date: 05 May 2007      Posted By: Parth      Member Level: Silver     Points: 2   Responses: 2



How to select treenode by javascript?




Responses

Author: Shivshanker Cheral    05 May 2007Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

HI
I think you can use getElementbyID() function



Author: Parth    05 May 2007Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Put this method in your aspx page..

function TreeView_SelectNode(data, node, nodeId) {
document.getElementById(data.selectedNodeID.value).className="";
document.getElementById(data.selectedNodeID.value).parentNode.className="";
data.selectedNodeID.value = nodeId;
document.getElementById(nodeId).parentNode.className="TreeSelectedNodeStyle";
document.getElementById(nodeId).className="TreeSelectedNodeStyle";
}



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : C#
Previous : DataGrid values automatically disappear
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use