jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree Remove item not removing elements

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Remove item not removing elements #13537

    rajuk
    Member

    Remove Item not working as you suggested in Previous posted.

     $('#Remove').click(function () {
    var selectedItem = $('#jqxTree').jqxTree('selectedItem'),
    count,
    children;
    if (selectedItem != null) {
    children = $(selectedItem.element).find('li');
    count = children.length;
    for (var i = 0; i < count; i += 1) {
    if (i < count - 1) {
    $('#jqxTree').jqxTree('removeItem', children[i], false);
    } else {
    $('#jqxTree').jqxTree('removeItem', children[i], true);
    }
    }
    }
    });
    Remove item not removing elements #13547

    Peter Stoev
    Keymaster

    Hi rajuk,

    RemoveItem is demonstrated in this sample: settings.htm.

    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.