jQuery UI Widgets Forums Gauges and Maps TreeMap tree checkbox

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • tree checkbox #64408

    imran
    Participant

    Hi, i’m using your plugin, i included java Script files using Cakephp-2.5 method and directory structure.. i placed checkbox-plugin named folder insided js in webroot.
    echo $this->Html->script(“checkbox-plugin/scripts/jquery-1.11.1.min”);
    echo $this->Html->script(“checkbox-plugin/jqxcore”);
    echo $this->Html->script(“checkbox-plugin/jqxbuttons”);
    echo $this->Html->script(“checkbox-plugin/jqxscrollbar”);
    echo $this->Html->script(“checkbox-plugin/jqxpanel”);
    echo $this->Html->script(“checkbox-plugin/jqxtree”);
    echo $this->Html->script(“checkbox-plugin/jqxcheckbox”);

    and css file in webroot/css/checkbox-style folder as following , you can see
    echo $this->Html->css(‘checkbox-style/jqx.base’);

    in index.ctp

    <script type=”text/javascript”>
    $(document).ready(function () {
    // Create jqxTree
    // create jqxTree
    $(‘#jqxTree’).jqxTree({ height: ‘400px’, hasThreeStates: true, checkboxes: true, width: ‘330px’});
    $(‘#jqxTree’).css(‘visibility’, ‘visible’);
    $(‘#jqxCheckBox’).jqxCheckBox({ width: ‘200px’, height: ’25px’, checked: true });
    $(‘#jqxCheckBox’).on(‘change’, function (event) {
    var checked = event.args.checked;
    $(‘#jqxTree’).jqxTree({ hasThreeStates: checked });
    });
    $(“#jqxTree”).jqxTree(‘selectItem’, $(“#home”)[0]);
    });

    </script>

    i’m creating tree usinh cakephp helper . it generates ul li list

    <body>
    <div id=’jqxTree’>
    <?php

    echo $this->Tree->generate($parents, array( ‘maxDepth’=>’5’));
    ?>
    </div>
    </body>

    no checkboxes or checkbox- tree is generated. tell me where i’m doing mistake.

    tree checkbox #64412

    Peter Stoev
    Keymaster

    Hello imran,

    For using jqxTree with Checkboxes, please take a look at: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtree/checkboxes.htm?arctic.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    tree checkbox #64413

    imran
    Participant

    actually checked that and followed documentation given for that. but still nothing is shown (check box).

    In Short; folder structure can be changed or not ?

    Detail;
    i just wanna ask, I have placed your .js files in different folder than your folder structure because cakephp required to place .js file in “webroot/js” folder and css files in “webroot/css” folder. while in your project css file is inside “jqwidgets” folders. may be this is issue if folder structure is necessary to keep.

    tree checkbox #64447

    Peter Stoev
    Keymaster

    Hello imran,

    It’s only required the PATH to the files to be correct.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.