jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree Show/Hide Checkboxes on existing tree

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Show/Hide Checkboxes on existing tree #52696

    hopper
    Participant

    Hi,

    is it possible to change a tree without checkboxes to a tree with checkboxes?
    So that I can enable the checkboxes functionality without having to reload the whole tree?

    $(settings.treeElement).jqxTree({hasThreeStates: true, checkboxes: true});
    $(settings.treeElement).jqxTree('refresh');
    

    but this results in the following error:

    Uncaught Error: Invalid jQuery Selector! Please, check whether the used ID or CSS Class name is correct. c898368_jqxcore_1.js:7
    a.fn.(anonymous function) c898368_jqxcore_1.js:7
    (anonymous function) c898368_jqxtree_6.js:7
    x.extend.each jquery-2.0.3.js:590
    a.extend.checkItem c898368_jqxtree_6.js:7
    a.extend._updateCheckState c898368_jqxtree_6.js:7
    (anonymous function) c898368_jqxtree_6.js:7
    x.extend.each jquery-2.0.3.js:590
    a.extend._updateCheckStates c898368_jqxtree_6.js:7
    a.extend.propertyChangedHandler c898368_jqxtree_6.js:7
    a.jqx.setvalueraiseevent c898368_jqxcore_1.js:7
    (anonymous function) c898368_jqxcore_1.js:7
    x.extend.each jquery-2.0.3.js:598
    a.jqx.set c898368_jqxcore_1.js:7
    a.jqx.jqxWidgetProxy c898368_jqxcore_1.js:7
    (anonymous function) c898368_jqxcore_1.js:7
    x.extend.each jquery-2.0.3.js:590
    x.fn.x.each jquery-2.0.3.js:237
    a.fn.(anonymous function) c898368_jqxcore_1.js:7
    $.ajax.success c898368_expedient_list_handler_24.js:89
    l jquery-2.0.3.js:2913
    c.fireWith jquery-2.0.3.js:3025
    k jquery-2.0.3.js:7400
    (anonymous function) jquery-2.0.3.js:7822

    Or is this only possible by hiding the checkboxes and showing them when needed?

    Thanks a lot.

    Regards

    Stephan

    Show/Hide Checkboxes on existing tree #52698

    Peter Stoev
    Keymaster

    Hi hopper,

    It is currently not possible to dynamically display/hide the Tree’s Checkboxes.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.