jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree select item get values

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Nadezhda 10 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • select item get values #66260

    mustafa
    Participant

    hello

    I cannot get the details selected element Just coming label name
    I do not see id and parent
    thank you


      
     $('#InvoceTreeList').on('select', function (event) {
            var args = event.args;
            var item = $('#InvoceTreeList').jqxTree('getItem', args.element);      
        });
    
    $('#InvoceTreeList').on('select', function (event) {
            var args = event.args;
            var item = $('#InvoceTreeList').jqxTree('getItem', args.element);
            var label = item.label;
        });
    
        var source =
                {
                    datatype: "json",
                    datafields: [
                        { name: 'InvoiceItemID' },
                        { name: 'ParentID' },
                        { name: 'Name' },
                        { name: 'Code' }
                    ],
                    id: 'InvoiceItemID',
                    localdata: GetInvoiceItems()
                };
    
        var dataAdapter = new $.jqx.dataAdapter(source);
        dataAdapter.dataBind();
        var records = dataAdapter.getRecordsHierarchy('InvoiceItemID', 'ParentID', 'items', [{name:'InvoiceItemID',name:'ParentID', name: 'Name', map: 'label' }]);
        $('#InvoceTreeList').jqxTree({ source: records, width: '300px' });
    select item get values #66283

    Nadezhda
    Participant

    Hello mustafa,

    Please, provide us the data in GetInvoiceItems() or preferably full sample which we would be able to test.

    Best Regards,
    Nadezhda

    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.