CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/9/2008 7:15:13 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 1 Views: 604 Favorited: 0 Favorite
2 Items, 1 Pages 1 |< << Go >> >|
santhi99
Asp.Net User
Enable and disable treeview child nodes4/9/2008 7:15:13 AM

-1

how to enable and disable the treeview child nodes in c#.net???????,in which event i've to write the code?


santhi
orzeh
Asp.Net User
Re: Enable and disable treeview child nodes4/9/2008 9:30:59 AM

1

 hi!

You can use PreRender event:

 

protected void TreeView1_PreRender(object sender, EventArgs e)
    {
        foreach (TreeNode n in TreeView1.Nodes)
        {
            if (n.Text.StartsWith( "a" ) )
                n.SelectAction = TreeNodeSelectAction.None;
        }
    }

 

hope it helps

orzeh 


code less, think more!
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Dynamics AX: a guide to Microsoft Axapta Authors: Luis X. B. MourĂ£o, David Weiner, Pages: 469, Published: 2005
Microsoft Windows Server 2003: Administrator's Pocket Consultant Authors: William R. Stanek, Pages: 540, Published: 2003

Web:
Enable and disable treeview child nodes - ASP.NET Forums how to enable and disable the treeview child nodes in c#.net???????,in which event i've to write the code? ...
Visual Basic :: Urgent Help - TreeView Enabling/Disabling Child Nodes Disabling/enabling Ctrl+alt+del - Urgent; [TreeView] Child Nodes ..... How can we enable and disable TCP/IP , FTP ports on the client machine using either ...
ASP.NET Controls - TreeView Forum - Enable Disable Child Controls I am having a case, we want to disable, enable child controls client side that have been added to a tree node server side. ...
Enable and disable the treeview nodes - ASP.NET Forums i'm new to c#.net can any one help me "how to enable and disable the treeview child nodes in c#.net" in which event i've to write? ...
C# .NET Disable TreeView Node Jul 22, 2008 ... Can anyone tell me how I Disable a TreeView Node. ..... The result I want is when I disable a node, that ALL child and child/child and ...

disable the url in root node in treeview - ng.asp-net-forum ... I have a treeview and I d like to show the root node but disable the URL ... ( 2.0 treeview). doesnt need a postback to open childnodes. .... it possible ?? i have seen a post i n which some wrtie to use enable disable . ...
Getting an specific SiteMapNode with its ChildNodes. - ng.asp-net ... If you enable Security Trimming and you explicitly associate roles with ... ChildNodes is not a member of the Admin role, they will not see ChildNode4. ... disable the url in root node in treeview - ng.asp-net-forum . ...
How to: Disable a node of Treeview control dynamically? - ng.asp ... Remove Root Node in treeview Control - ASP.NET Forums I used treeview Control, problem is doesn't Remove in RootNode ... -Child Node. Disable root node. ...
loop through nodes in treeview in c# - ng.asp-net-forum ... Getting an specific SiteMapNode with its ChildNodes. - ng.asp-net ... disable the url in root node in treeview - ng.asp-net-forum . ...
Asp.Net 2.0 Treeview - How to AutoPostback when a TreeNode's ... Show an organizational hierarchy in a treeview. for example, ... Whenever the parent node is checked, all its child nodes will get checked as a result of .... I want to disable (AutoPostBack) for the tree . So on the . ...






cannot debug custom sitemap provider

treeview1.node.checked=true......?????

tab strip control

confused with my sitemap

sealed contentplaceholders

custom sitemap

how to hide the expand/collaps indicator for menu items ?

asp.net 2.0 menu control

sitemapnode.attributes - protected??

adding an item to a menu after its already bound to a sitemap file

menu control, statichoverstyle issue with image background

masterpage and headers?

images on menu

code-behind not working

problem with asp.net menu control - leaving a top margin of about 1 or 2px in ie

menu control default selected item on page load

seo and viewstate of master pages

iframe related

some master page things showing only on default.aspx

programmatically list themes

urgent help needed for problem with calendar popup in my master page

css of master page not being apply on content pages

is there a way to control path to theme files? thanks

use sitemap to display nav items

why second click on linkbutton sets value and not first?

asp.net 2.0 masterpage image question

clickable area in a menuitem

text color in textboxes

buttons not working in contentplaceholder in a content page of a master page

master page with treeview

   
  Privacy | Contact Us
All Times Are GMT