.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to check plusminus is selected for treeview

Posted By: kamlesh     Posted Date: January 06, 2012    Points:5   Category :C#
Hi
i have one treeview which shows all system drive, i make treeview property Showplusminus = True,
and i have write node mouse click event for treeview and i want to check on this event that plusminus is selected or not
how to check
Please help me

Responses
Author: Sasi Prabhu             
Posted Date: January 06, 2012     Points: 20   

Refer :

http://forums.asp.net/p/1066455/1544380.aspx



Thanks & Regards,
Sasi Prabhu.
Author: Deco             
Posted Date: January 10, 2012     Points: 20   

These are the following events available in the treeview

BeforeExpand
AfterExpand
BeforeCollapse
AfterCollapse

In the After Collapse event write the coding

Response.Write("Collapsed");

in the After Expand event write

Response.Write("Expanded");

now you can get the result like whether the treenode is expanded or collapsed

Regards,
Deco


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend