How to hide/unhide the all Treenodes on Treeview based on Checkbox changed event in Sharepoint custom webpart Sitecollections

How to  hide/unhide the all Treenodes on Treeview based on Checkbox changed event?
Checkbox(Control)
1.Checkbox Checked:(Action below like)
 if user click on  Checkbox, all the treenodes on treeview is hide.
2.Checkbox Unchecked(Action below like)
If user uncheck the Checkbox  all the treenodes on treeview is unhode.
Could you please help me how to do above one.
Badri

Hi,
According to your post, my understanding is that you want to hide/show the TreeView when the Checkbox checked/unchecked.
We can use jQuery to achieve it, the following script for your reference:
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("input[type=checkbox]").click(function () {
if (this.checked) {
$("#TreeViewID").hide();
} else {
$("#TreeViewID").show();
</script>
More information:
http://dineshsharepoint.blogspot.com/
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • How to hide/unhide the Develop panels

    all my sliders disappeared on the develop
    how do i restore them
    like temp, tint, ect
    stupid i cant do this solo
    Message title was edited by: Brett N

    Press <Tab> on your keyboard.
    Also, there is a small grey triangle about halfway up on the very right of the screen that - when you click it - toggles the visibility of the side panel.
    Same goes for left side panels and also for other Modules.

  • JavaScript - How to collapse/uncollapse (hide/unhide) the top menus in SharePoint 2010?

    Hi there,
    I will appreciate if someone can provide JavaScript that can hie/unhide the top ribbon and navigation menu? (SharePoint 2010)
    Thanks.

    Hi,
    By investigating the page source, we can see that the Ribbon is corresponding to the <div> whose id is “s4-ribbonrow”, the Top Navigation is “zz17_TopNavigationMenuV4”,
    then we can change the style these two elements to hide/unhide them.
    The links below with code demos about
    how to hide/unhide page elements using JavaScript for your reference:
    http://www.w3schools.com/jsref/prop_style_visibility.asp
    http://www.javascriptkit.com/javatutors/dom3.shtml
    http://www.dustindiaz.com/seven-togglers/
    Here is a link about
    how to find a specific element on a page using JavaScript:
    http://javascript.info/tutorial/searching-elements-dom
    Feel free to reply if there still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to Hide / Unhide iGrid Applet

    I'm attempting to develop an irpt page which will feature two grids / applets.  The topmost grid will be visible upon initial load of the page.  Upon selecting a record from the top grid, I'd like to then unhide the bottom grid so that a user may select a row from it before then calling another page.
    I've tried all of the following methods to hide / unhide the grid but none appear to be working:
    1)  Set the style.display of the applet to 'none' and then set it to 'inline' after row selection of the top grid.
    2)  Set the column widths of the bottom iGrid to 0 and then use the document.iGrid-applet.ColumnWidths=x,y JS command after row selection of the top grid.
    3)  Set the initial width of the iGrid applet to 1 X 1 and then use the document.getElementById("applet-iGrid").style.width / height = 'xxxpx' after row selection of the top grid.
    None of these solutions work.  It appears that once the iGrid applet is loaded, none of these properties may then be utilized to change it's appearance.
    How can hide upon load and then subsequently unhide an iGrid applet??
    Thanks in advance,
    Randy

    Thanks Udayan - this worked. 
    Only other tidbit was that it appears you first have to set the style display to inline in the div tag (to ensure all subsequent object references to the grid are valid). 
    Then in the function called by the update event of your top iGrid applet, you have to hide the bottom iGrid/applet with the style="display:none" command.
    Then in the function called by the selection event of your top iGrid applet, you have to unhide the bottom iGrid/applet with the style="display:inline" command.
    This ensures the applet is first displayed (so that all references to the grid object are valid), hide it when the first (top) grid is displayed, and then unhide it when a row is selected from the first (top) grid.
    Thanks again,
    Randy

  • How to hide ,unhide columns  in ALV List

    Hi all,
    How to hide ,unhide columns  in ALV List..
    Plz guide me.
    Thanks in advance..
    Albert

    Hi Joseph,
    Check the following thread:
    Hide Unhide columns of ALV grid Report.
    Regards,
    Archana

  • How to Hide/show the columns data while doing Drill down or drill up

    Hi ,
    How to Hide/show the columns data while doing Drill down or drill up in webi report .
    Does it possible BO 3.1 version ?
    Please suggest me on this.
    Thanks & Regards
    Venkat

    While that is not there yet, you can make use of the show when empty yes/no in combination with alerters.
    So I have an alerter applied to every cell of the table.
    When a condition is true (say I drilled down) I just put = "" in every cell, emptying the table,
    because its now empty and doesn't need to show, it wont.
    For the detail table I use the opposite, so when you drilled down it becomes visible...
    Hope this helps all that do not have 40 yet
    Good luck,
    Marianne

  • How to hide ribbon from all item view for particular user group

    hi friends
    how to hide ribbon from all item view of particular list for specific user group.
    using OOB functionality or javascript. 

    Hello,
    Use this codeplex tool to hide ribbon to user group:
    http://spribbonvisibility.codeplex.com/
    If you don't want to use above tool then you have to add SPSecuritytrimming in "Rajiv Kumar" code for filtering based on user group permission.
    http://www.topsharepoint.com/hide-the-ribbon-from-anonymous-users
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to hide/remove the following links

    how to hide/remove the following links under All My Trips tab.
    the column u2018Recommended Actionsu2019 shows the link create travel plans when the trip is specific status. This link should be removed.
    Whereas in the same place, if u2018Change Travel Expense Reportu2019 is shown then it should not be removed

    got solution from the following document.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0ca7949-af7b-2b10-db80-ed8ca509f573?quicklink=index&overridelayout=true

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

  • How to Find out the all  tables in module wise ?

    Dear Friends,
    1.How to Find out the all  tables in module wise ?
       what are the total number of table in SAP ?
    2. how to find out all existing functions in SAP ?
    Thanks and regards,
    Subasha Chandra Sahoo.

    Hi,
    You will get the module wise list from:
    http://www.sourceveda.com/SAPReference.htm
    http://www.sourceveda.com/
    Regards...

  • How do I unhide the URL window/field that allows me to directly enter a different URL without using the Search Window/field?

    I need to unhide the window or field that allows me to DIRECTLY enter a different URL. I do not want to use the search engine. I want to manually enter the URL of my choice and go DIRECTLY there.
    So, how do I unhide the URL window?

    It is still there at the left most part part of the address bar, but you have to press and hold the trackpad to use it.
    Click the Share (arrow out of the box) button  to add  bookmark.

  • How can I find the all path available for a MPLS VPN in SP network

    How can I find the all path available for a MPLS VPN in SP network between PE to PE and CE to CE?

    Hi There
    If we need to find all the available paths for a remote CE from a local PE it will depend upon whether its a RR or non-RR design. If the MP-iBGP deisgn is non-RR  the below vrf specific command
    sh ip bgp vpnv4 vrf "vrf_name"  will show us the MP-iBGP RT for that particular VPN. It will show us the next hop. Checking the route for same in the Global RT will show us the path(s) available for same ( load-balancing considered) .Then we can do a trace using the Local PE MP-iBGP loopback as source to remote PE's MP-iBGP loopback to get the physical Hops involved.
    However if the design is RR-based there might be complications involved when the RR is in the forwarding path ie we have NHS being set to RR-MP-iBGP loopback and the  trace using the Local PE MP-iBGP loopback as source to remote PE's MP-iBGP loopback will get us the physical Hops involved.
    If we have redundant RRs being used with NHS being set then the output of sh ip bgp vpnv4 vrf "vrf_name" will show us two different available paths for the remote CE destination but just one being used.
    RR-based design with no NHS being used will always to cater to single path for the remote CE detsination.
    So in any case the actual path used for the remote CE connectivity would be a single unless we are using load-balancing.
    Hope this helps you a bit on your requirement
    Thanks & Regards
    Vaibhava Varma

  • How can I check the all schedule CM jobs' time?

    Dear all:
    How can I check the all schedule CM jobs' schedule time?
    my environment is : EBS 11.5.9 | DB:ORACLE 9.2.0.8 | PLATFORM: LINUX redhat 4.0*
    Regards
    Terry
    Edited by: Terry Chen on 2010/4/14 下午 7:12

    Terry,
    Please see (Note: 170107.1 - How to Determine Scheduled Concurrent Requests).
    Regards,
    Hussein

  • How can I enlarge the "all-day" screen on the iPhone calendar?  I use the all-day screen for all my tasks, and it only shows 2 items at a time!!  Help!!!

    How can I enlarge the "all-day" screen on the iPhone calendar?  I use the all-day screen for all my tasks, and it only shows 2 items at a time!!  Help!!!

    The iPhoto App can select all of the photos in the All Imported folder and delete them.

  • How to *hide/remove* the *My Travel Plans tab.*

    How to hide/remove the following links Under My Trips and Expenses :
        My Travel Plans tab.
    Thanks in advance.

    got solution from the following document.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0ca7949-af7b-2b10-db80-ed8ca509f573?quicklink=index&overridelayout=true

Maybe you are looking for

  • HT1369 iphone no longer connects to itunes

    my iphone 5 has all of a sudden stopped automatically syncing with itunes, the rest of my tablet, ie, my pictures recognises iphone but not itunes

  • Deleteing folder for multiple users

    Good morning all - As most people would admit, I am terrible at scripting in any form.  In short, I need assistance with a dummy proof script to delete the contents of a folder for multiple (150+) users, without  having to touch each users profile. 

  • Replication in SAP R/3 on SQL server

    hi,   We want to read of R/3 data for some legacy system. I know that there are many ways for this matter but is there any limitation for one-side replication of data in SAP R/3 to a middle ware database? We use MS SQL server as R/3 RDBMS. Thanks a l

  • Adding links( page links) dynamically under tabs in masterpage SharePoint 2010

    Hi I've site which contain master page where I have Tab1, tab2, tab3. I want to add a link (link to pages) dynamically under aspmenu  tab1,tab2 or tab3 based on requirement without editing the master page. Is there any approach for ex.. if I am addin

  • Webdynpro tree ui element

    hi all,     i want to know from which tables can i pick the skill group and skills related to each skill group. And after getting these details i want to display them in the tree structure in my iView .     it is very urgent can any body help me rega