Results 1 to 2 of 2
  1. #1
    umadatt is offline Member
    Join Date
    Mar 2012
    Posts
    3
    Rep Power
    0

    Default Jsp Tree Structure with Checkbox

    Hi,
    I need Tree Structure in Jsp/Jquery which consist of Checkbox & when i select the Checkbox it select items within that item.I have jquery code but it doing nothing.
    Pls suggest some solution its very urgent
    Thanks
    Umadatt
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta name="keywords" content="jQuery Tree Widget, Tree Menu, jqxTree, jQuery Widgets, jQuery Plugins, jQuery UI Widgets, jQuery UI" />
    <title id='Description'>The jqxTree displays a hierarchical collection of items. You
    can populate it from 'UL' or by using its 'source' property.</title>
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" />
    <link rel="stylesheet" href="../../jqwidgets/styles/jqx.summer.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxpanel.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxtree.js"></script>
    <script type="text/javascript" src="../../jqwidgets/jqxcheckbox.js"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    var source = [
    { label: "Item 1", expanded: true, items: [
    { label: "Item 1.1" },
    { label: "Item 1.2", selected: true }
    ]
    },
    { label: "Item 2" },
    { label: "Item 3" },
    { label: "Item 4", items: [
    { label: "Item 4.1" },
    { label: "Item 4.2" }
    ]
    },
    { label: "Item 5" },
    { label: "Item 6" },
    { label: "Item 7" }
    ];
    // Create jqxTree.
    $('#jqxTree').jqxTree({checkboxes: true, source: source, height: '300px', width: '300px' });
    });
    </script>
    </head>
    <body class='default'>
    <div id='jqxTree'>
    </div>
    </body>
    </html>

  2. #2
    reporter is offline Member
    Join Date
    Mar 2012
    Posts
    1
    Rep Power
    0

    Default Re: Jsp Tree Structure with Checkbox

    Why don't you ask jQWidgets about it here: jQWidgets Forums. Their support is very helpful.

Similar Threads

  1. CheckBox node tree with two diferent kind of nodes
    By cdinesh1 in forum AWT / Swing
    Replies: 0
    Last Post: 02-03-2012, 08:02 AM
  2. Tree data structure
    By Nacao in forum New To Java
    Replies: 18
    Last Post: 08-23-2011, 07:26 PM
  3. Replies: 4
    Last Post: 04-13-2011, 04:35 AM
  4. Tree Structure
    By chiku in forum New To Java
    Replies: 2
    Last Post: 01-27-2011, 09:31 PM
  5. Tree structure using JAVA
    By trill in forum Advanced Java
    Replies: 2
    Last Post: 05-27-2010, 12:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •