Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

s
More...

Forums » .NET » ASP.NET »

How to use treeview with checkbox in asp.net


Posted Date: 07 Sep 2012      Posted By:: bhavisha     Member Level: Bronze    Member Rank: 5016     Points: 1   Responses: 3



how to use data bound event in treeview using checkbox in asp.net using c# and that check box will be display checked=true




Responses

#687950    Author: Prasad kulkarni        Member Level: Diamond      Member Rank: 8     Date: 07/Sep/2012   Rating: 2 out of 52 out of 5     Points: 1

what is your exact requirement can you ealaborate so that we can give you proper way to resolve it

Thanks
Koolprasd2003
[DotNetSpider MVM]



 
#687979    Author: Ravindran        Member Level: Diamond      Member Rank: 3     Date: 07/Sep/2012   Rating: 2 out of 52 out of 5     Points: 0

Refer my resource in detail about tree view

http://www.dotnetspider.com/resources/43504-How-create-tree-view-ASP-NET.aspx

Regards
N.Ravindran
Your Hard work never fails



 
#688040    Author: Pawan Awasthi      Member Level: Diamond      Member Rank: 4     Date: 08/Sep/2012   Rating: 2 out of 52 out of 5     Points: 2

Hai Bhavisha,
If you want to create a tree-view which will have the check-boxes, then you can choose the type of the tree-view control and it has various flavors where you can choose to display the checkbox.
So first you need to drag and drop the checkbox with the properties:

<asp:TreeView ID="TreeView1" runat="server" ImageSet="Custom" ShowCheckBoxes="All" BorderColor="Red" ForeColor="Blue">
<HoverNodeStyle ForeColor="Black" /> <SelectedNodeStyle Font-Underline="False" HorizontalPadding="5px" VerticalPadding="2px" /><NodeStyle Font-Names="Verdana" Font-Size="10pt" ForeColor="Blue" HorizontalPadding="5px" NodeSpacing="5px" VerticalPadding="5px" /> <LeafNodeStyle ForeColor="Blue" />
</asp:TreeView>

Now it will show the check-boxes in your TreeView control.
Hope it will be helpful to you.

Regards,
Pawan Awasthi(DNS MVM)
+91 8143683708 (pawansoftit@gmail.com)
Outstanding Contribution Award..NTT Data Inc






 
Post Reply
You must Sign In to post a response.

Next : How to secure aspx page
Previous : Bind the pdf to iframe
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.