jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts

  • castt
    Participant

    Faced the same issue. Here is my solution.

    
            $('#tree').on('select', function (event) {
                var item = $('#tree').jqxTree('getItem', event.args.element);
                //do whatever with item
            });
    
            // helper to raise select event on already selected tree element
             $('#tree. jqx-tree-item').on('click', function () {
             	// Clear selection
             	$("#tree").jqxTree('selectItem', null);
             	var element_id = $(this).parent().attr('id');
             	// re-select element
             	$("#tree").jqxTree('selectItem', $("#tree #" + element_id)[0]);
             });
    

    castt
    Participant

    I would like to show my data with extra Column “Row Counter” so I can see on witch row number I’m looking at. So when I’m setting my columns: [
    {text: “Row Counter”, datafield: ”, type: ‘number’ },
    { text: ‘First Name’, datafield: ‘client_first_name’ },
    { text: ‘Last Name’, datafield: ‘client_last_name’},
    { text: ‘Sale Date’, datafield: ‘purch_date’, cellsrenderer: mongodate_render},
    { text: ‘Downpayment’, datafield: ‘downpay’, cellsrenderer: cellsrenderer},

    ]
    My “Row Counter” will start count from 0. I would like to see it counting from 1

    in reply to: Place tree into other control Place tree into other control #19776

    castt
    Participant

    99% height of the tree works, but now I see border of the tree which is shorter then navigation panel by couple pixels(depends on window size). How can I fix it?


    castt
    Participant

    I don’t see any conflicts, could you be more specific?


    castt
    Participant

    I hope we will get feature to set content of dynamically created tabs via ajax in future. While we don’t actually have it, here is workaround:

     $('#jqxTabs').jqxTabs('addLast',title, '<div class="newTab">Sample title');
    $('.newTab').load(url, function() {
    $(this).removeClass('newTab');
    });
Viewing 5 posts - 1 through 5 (of 5 total)