jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree treeview expand event issue

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 11 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • treeview expand event issue #32764

    Parmesh
    Participant

    Hi,

    I have a requirement to create a tree and bind dynamically in the navigation bar. I have tried it and able to create the dynamically the navigation item and tree inside of it. but i have a issue with tree view expand event. for dynamically created a tree view the expand event is not firing in some cases.

    steps reproduce the issue.

    click the add button

    it will add navigational item with tree. after adding new tree. click on the market item from the first tree. which was static item. then expand the market item from the newly created tree. it will not working.

    I am not able to fix the issue. can you suggest how to fix this issue.

    but it is working fine when we first expand the markets item from recently added tree

    Here is the code

    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <title id=’Description’>This sample demonstrates how to load Tree Items via Ajax
    </title>
    <link rel=”stylesheet” href=”../../jqwidgets/styles/jqx.base.css” type=”text/css” />
    <script type=”text/javascript” src=”../../scripts/gettheme.js”></script>
    <script type=”text/javascript” src=”../../scripts/jquery-1.10.2.min.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxcore.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxdata.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxbuttons.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxscrollbar.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxpanel.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxtree.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxcheckbox.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxexpander.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxnavigationbar.js”></script>
    <script type=”text/javascript”>
    $(document).ready(function () {
    var theme = “”;
    // Create jqxTree
    var tree = $(‘#jqxTree’);
    var source = null;
    $.ajax({
    async: false,
    url: “ajaxroot.htm”,
    success: function (data, status, xhr) {
    source = jQuery.parseJSON(data);
    }
    });

    //tree.jqxTree({ source: source, theme: theme, height: ‘auto’, width: ‘auto’ });

    var vSource = getdataPortfolioDataSource();

    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘id’ },
    { name: ‘parentid’ },
    { name: ‘text’ },
    { name: ‘value’ }
    ],
    id: ‘id’,
    localdata: vSource
    };
    //alert(source);

    var dataAdapter = new $.jqx.dataAdapter(source);
    // perform Data Binding.
    dataAdapter.dataBind();
    var records = dataAdapter.getRecordsHierarchy(‘id’, ‘parentid’, ‘items’, [{ name: ‘text’, map: ‘label’ }]);
    tree.jqxTree({ source: records, width: ‘auto’, height: ‘auto’, theme: theme, hasThreeStates: true, checkboxes: true });
    tree.bind(‘expand’, function (event) {
    alert(‘static’);
    var args = event.args;
    var item = tree.jqxTree(‘getItem’, args.element);
    var $element = $(event.args.element);
    var label = item.label;

    console.log($element);
    if (item.parentId == “202_1” || item.parentId == “202_2” || item.parentId == “202_3” || item.parentId == “202_4” || item.parentId == “202_5” || item.parentId == “202_6”) {
    $(args.element).find(‘li’).empty();
    var assetItems = that._getAssetsbyDivisions(label);
    tree.jqxTree(‘addTo’, assetItems, item);

    }
    else if (label == “PRISA” || label == “PRISA II” || label == “PRISA III” || label == “VAL” || label == “VSA” || label == “WCOT”) {

     

    $(args.element).find(‘li’).empty();
    var assetItems = that._getDivisions(label);
    tree.jqxTree(‘addTo’, assetItems, item);

    }
    else if (label == “Market”) {

    $(args.element).find(‘li’).empty();
    var assetItems = _getMarketobjects();
    tree.jqxTree(‘addTo’, assetItems, item);

    if (item.checked) {
    tree.jqxTree(‘checkItem’, item, true);
    }

    }

    });

    $(“#jqxNavigationBar”).jqxNavigationBar({ width: ‘auto’, height: ‘auto’, theme: theme });

    var len = 1

    $(“#btnAdd”).click(function () {

    streeName = “jqxTree”
    len += 1;
    streeName = streeName + len;
    $(‘#jqxNavigationBar’).jqxNavigationBar(‘add’, ‘<div style=”width:210px;height:15px”><div class=”PTHeading” cnt=”‘ + len + ‘” style=”width:92%;float: left;”>Portfolio Analysis ‘ + len + ‘</div><div style=”width:8%;float:right;”> <img src=”Images/button-remove_red.png” class=”removePortfolioTree” style=”height:20px;width:20px” title=”Delete” onclick=”$(\’#Portfolio\’).portfolio(\’removePortfolioTree\’,this,\” + streeName + ‘\’);” /> </div></div>’, ‘<div id=”‘ + streeName + ‘” style=”position: absolute;top: 0;left: 0;”></div>’);

    var vSource = getdataPortfolioDataSource();

    var source =
    {
    datatype: “json”,
    datafields: [
    { name: ‘id’ },
    { name: ‘parentid’ },
    { name: ‘text’ },
    { name: ‘value’ }
    ],
    id: ‘id’,
    localdata: vSource
    };
    //alert(source);

    var dataAdapter = new $.jqx.dataAdapter(source);
    // perform Data Binding.
    dataAdapter.dataBind();
    var records = dataAdapter.getRecordsHierarchy(‘id’, ‘parentid’, ‘items’, [{ name: ‘text’, map: ‘label’ }]);
    $(‘#’ + streeName).jqxTree({ source: records, width: ‘100%’, height: 300, theme: theme, hasThreeStates: true, checkboxes: true });
    $(‘#’ + streeName).on(‘expand’, function (event) {
    alert(streeName);
    var args = event.args;
    var item = $(‘#’ + streeName).jqxTree(‘getItem’, args.element);
    var $element = $(event.args.element);
    var label = item.label;
    console.log(streeName);
    console.log($element);
    if (item.parentId == “202_1” || item.parentId == “202_2” || item.parentId == “202_3” || item.parentId == “202_4” || item.parentId == “202_5” || item.parentId == “202_6”) {
    $(args.element).find(‘li’).empty();
    var assetItems = that._getAssetsbyDivisions(label);
    $(‘#’ + streeName).jqxTree(‘addTo’, assetItems, item);
    $(‘#’ + streeName).jqxTree(‘refresh’);

    }
    else if (label == “PRISA” || label == “PRISA II” || label == “PRISA III” || label == “VAL” || label == “VSA” || label == “WCOT”) {

     

    $(args.element).find(‘li’).empty();
    var assetItems = that._getDivisions(label);
    $(‘#’ + streeName).jqxTree(‘addTo’, assetItems, item);
    $(‘#’ + streeName).jqxTree(‘refresh’);

    }
    else if (label == “Market”) {

    $(args.element).find(‘li’).empty();
    var assetItems = _getMarketobjects();
    $(‘#’ + streeName).jqxTree(‘addTo’, assetItems, item);

    //if (item.checked) {
    // $(‘#’ + streeName).jqxTree(‘checkItem’, item, true);
    //}

    }

    });

    });

    });

    function getdataPortfolioDataSource() {
    var data = [

    {
    “id”: “62”,
    “text”: “Portfolio”,
    “parentid”: “-1”,
    “value”: “Portfolio”
    },
    {
    “id”: “622”,
    “parentid”: “62”,
    “text”: “PRISA”,
    “value”: “PRISA,PRISA Acquistion LLC,PRISALHC”
    },
    {
    “id”: “621”,
    “parentid”: “62”,
    “text”: “PRISA II”,
    “value”: “PRISA II”
    },

    {
    “id”: “623”,
    “parentid”: “62”,
    “text”: “PRISA III”,
    “value”: “PRISA III”
    },

    {
    “id”: “624”,
    “parentid”: “62”,
    “text”: “VAL”,
    “value”: “VAL”
    },

    {
    “id”: “625”,
    “parentid”: “62”,
    “text”: “VSA”,
    “value”: “VSA,Virginia Retirement System”
    },

    {
    “id”: “626”,
    “parentid”: “62”,
    “text”: “WCOT”,
    “value”: “WCOT”
    },

    {
    “id”: “12”,
    “text”: “Property Types”,
    “parentid”: “-1”
    },
    {
    “id”: “30”,
    “text”: “Apartment”,
    “parentid”: “12”,
    “value”: “A”

    },
    {
    “id”: “301”,
    “text”: “Garden”,
    “parentid”: “30”,
    “value”: “AG”
    },
    {
    “id”: “302”,
    “text”: “High Rise”,
    “parentid”: “30”,
    “value”: “AH”
    },
    {
    “id”: “303”,
    “text”: “Low Rise”,
    “parentid”: “30”,
    “value”: “AL”
    },
    {
    “id”: “31”,
    “text”: “Hotel”,
    “parentid”: “12”,
    “value”: “H”

    },
    {
    “id”: “32”,
    “text”: “Industrial”,
    “parentid”: “12”,
    “value”: “L”

    },
    {
    “id”: “10321”,
    “text”: “Flex Space”,
    “parentid”: “32”,
    “value”: “IF”
    },

    {
    “id”: “10322”,
    “text”: “Manufacturing”,
    “parentid”: “32”,
    “value”: “IM”
    },
    {
    “id”: “10323”,
    “text”: “Other”,
    “parentid”: “32”,
    “value”: “IO”
    },
    {
    “id”: “10324”,
    “text”: “Office Showroom”,
    “parentid”: “32”,
    “value”: “IS”
    },
    {
    “id”: “10325”,
    “text”: “Warehouse”,
    “parentid”: “32”,
    “value”: “IW”
    },
    {
    “id”: “33”,
    “text”: “Land”,
    “parentid”: “12”,
    “value”: “L”
    },
    {
    “id”: “34”,
    “text”: “Office”,
    “parentid”: “12”,
    “value”: “O”
    },
    {
    “id”: “10341”,
    “text”: “CBD”,
    “parentid”: “34”,
    “value”: “OCB”
    },
    {
    “id”: “10342”,
    “text”: “Suburban”,
    “parentid”: “34”,
    “value”: “OSU”
    },
    {
    “id”: “35”,
    “text”: “Retail”,
    “parentid”: “12”,
    “value”: “R”
    },
    {
    “id”: “10351”,
    “text”: “Community”,
    “parentid”: “35”,
    “value”: “RC”
    },
    {
    “id”: “10352”,
    “text”: “Theme/Festival Center”,
    “parentid”: “35”,
    “value”: “RE”
    },
    {
    “id”: “10353”,
    “text”: “Fashion/Specialty Center”,
    “parentid”: “35”,
    “value”: “RF”
    },
    {
    “id”: “10354”,
    “text”: “Neighborhood”,
    “parentid”: “35”,
    “value”: “RN”
    },
    {
    “id”: “10355”,
    “text”: “Outlet”,
    “parentid”: “35”,
    “value”: “RO”
    },
    {
    “id”: “10356”,
    “text”: “Power Center”,
    “parentid”: “35”,
    “value”: “RP”
    },
    {
    “id”: “10357”,
    “text”: “Regional Mall”,
    “parentid”: “35”,
    “value”: “RR”
    },
    {
    “id”: “10358”,
    “text”: “Super Regional Mall”,
    “parentid”: “35”,
    “value”: “RS”
    },
    {
    “id”: “10359”,
    “text”: “Single Tenant”,
    “parentid”: “35”,
    “value”: “RT”
    },
    {
    “id”: “36”,
    “text”: “Other”,
    “parentid”: “12”,
    “value”: “X”
    },
    {
    “id”: “10361”,
    “text”: “Entertainment”,
    “parentid”: “36”,
    “value”: “XE”
    },
    {
    “id”: “10362”,
    “text”: “Healthcare”,
    “parentid”: “36”,
    “value”: “XH”
    },
    {
    “id”: “10363”,
    “text”: “Senior Living”,
    “parentid”: “36”,
    “value”: “XL”
    },
    {
    “id”: “10364”,
    “text”: “Manufactured”,
    “parentid”: “36”,
    “value”: “XM”
    },
    {
    “id”: “10365”,
    “text”: “Other”,
    “parentid”: “36”,
    “value”: “XO”
    },
    {
    “id”: “10366”,
    “text”: “Parking”,
    “parentid”: “36”,
    “value”: “XP”
    },
    {
    “id”: “10367”,
    “text”: “Self-Storage”,
    “parentid”: “36”,
    “value”: “XS”
    },
    {
    “id”: “14”,
    “text”: “Regions”,
    “parentid”: “-1”
    },
    {
    “id”: “141”,
    “text”: “East”,
    “parentid”: “14”,
    “value”: “E”

    },
    {
    “id”: “1411”,
    “text”: “Mideast”,
    “parentid”: “141”,
    “value”: “ME”

    },
    {
    “id”: “1412”,
    “text”: “Northeast”,
    “parentid”: “141”,
    “value”: “NE”

    },
    {
    “id”: “142”,
    “text”: “Midwest”,
    “parentid”: “14”,
    “value”: “M”
    },
    {
    “id”: “1421”,
    “text”: “East North Central”,
    “parentid”: “142”,
    “value”: “EN”
    },
    {
    “id”: “1422”,
    “text”: “West North Central”,
    “parentid”: “142”,
    “value”: “WN”
    },
    {
    “id”: “143”,
    “text”: “South”,
    “parentid”: “14”,
    “value”: “S”
    },
    {
    “id”: “1431”,
    “text”: “Southeast”,
    “parentid”: “143”,
    “value”: “SE”
    },
    {
    “id”: “1432”,
    “text”: “Southwest”,
    “parentid”: “143”,
    “value”: “SW”
    },
    {
    “id”: “144”,
    “text”: “West”,
    “parentid”: “14”,
    “value”: “W”
    },
    {
    “id”: “1441”,
    “text”: “Mountain”,
    “parentid”: “144”,
    “value”: “WM”
    },
    {
    “id”: “1442”,
    “text”: “Pacific”,
    “parentid”: “144”,
    “value”: “WP”
    },
    {
    “id”: “16”,
    “text”: “Market”,
    “parentid”: “-1”,
    “value”: “Market”
    },
    {
    “id”: “Mark16”,
    “text”: “Loading….”,
    “parentid”: “16”,
    “value”: “Loading”
    },
    {
    “id”: “45”,
    “text”: “Year Built”,
    “parentid”: “-1”,
    “value”: “Year Built”

    },
    {
    “id”: “451”,
    “text”: “Before 1970”,
    “parentid”: “45”,
    “value”: “Before 1970”
    },
    {
    “id”: “452”,
    “text”: “1970 – 1979”,
    “parentid”: “45”,
    “value”: “1970 – 1979”
    },
    {
    “id”: “453”,
    “text”: “1980 – 1989”,
    “parentid”: “45”,
    “value”: “1980 – 1989”
    },
    {
    “id”: “454”,
    “text”: “1990 – 1999”,
    “parentid”: “45”,
    “value”: “1990 – 1999”
    },
    {
    “id”: “455”,
    “text”: “2000 – 2009”,
    “parentid”: “45”,
    “value”: “2000 – 2009”
    },
    {
    “id”: “456”,
    “text”: “After 2009”,
    “parentid”: “45”,
    “value”: “After 2009”
    },
    {
    “id”: “19”,
    “text”: “Size”,
    “parentid”: “-1”
    },
    {
    “id”: “191”,
    “text”: “Square Feet”,
    “parentid”: “19”,
    “value”: “Square Feet”
    },
    {
    “id”: “1911”,
    “text”: “< 100k”,
    “parentid”: “191”,
    “value”: “100k”
    },
    {
    “id”: “1912”,
    “text”: “100k – 250k”,
    “parentid”: “191”,
    “value”: “100k250k”
    },
    {
    “id”: “1913”,
    “text”: “250k – 500k”,
    “parentid”: “191”,
    “value”: “250K500K”
    },
    {
    “id”: “1914”,
    “text”: “500k – 1.0m”,
    “parentid”: “191”,
    “value”: “500K1M”
    },
    {
    “id”: “1915”,
    “text”: “>1.0m”,
    “parentid”: “191”,
    “value”: “1M”
    },
    {
    “id”: “192”,
    “text”: “Units”,
    “parentid”: “19”,
    “value”: “Units”
    },
    {
    “id”: “1921”,
    “text”: “<200”,
    “parentid”: “192”,
    “value”: “200”
    },
    {
    “id”: “1922”,
    “text”: “200-300”,
    “parentid”: “192”,
    “value”: “200300”
    },
    {
    “id”: “1923”,
    “text”: “300-500”,
    “parentid”: “192”,
    “value”: “300500”
    },
    {
    “id”: “1924”,
    “text”: “500-700”,
    “parentid”: “192”,
    “value”: “500700”
    },
    {
    “id”: “1925”,
    “text”: “>700”,
    “parentid”: “192”,
    “value”: “700”
    },
    {
    “id”: “21”,
    “text”: “NPI”,
    “parentid”: “-1”,
    “value”: “NPI”
    },
    {
    “id”: “211”,
    “text”: “Included in NPI”,
    “parentid”: “21”,
    “value”: “1”
    },
    {
    “id”: “212”,
    “text”: “Not Included in NPI”,
    “parentid”: “21”,
    “value”: “0”
    },
    {
    “id”: “20”,
    “text”: “Individual Assets”,
    “parentid”: “-1”,
    “value”: “Individual Assets”
    },
    {
    “id”: “202_1”,
    “parentid”: “20”,
    “text”: “PRISA”,
    “value”: “PRISA,PRISA Acquistion LLC,PRISALHC”
    },
    {
    “id”: “2011_1”,
    “parentid”: “202_1”,
    “text”: “Loading”,
    “value”: “Loading”
    },

    {
    “id”: “202_2”,
    “parentid”: “20”,
    “text”: “PRISA II”,
    “value”: “PRISA II”
    },
    {
    “id”: “2011_2”,
    “parentid”: “202_2”,
    “text”: “Loading”,
    “value”: “Loading”
    },
    {
    “id”: “202_3”,
    “parentid”: “20”,
    “text”: “PRISA III”,
    “value”: “PRISA III”
    },
    {
    “id”: “2011_3”,
    “parentid”: “202_3”,
    “text”: “Loading”,
    “value”: “Loading”
    },
    {
    “id”: “202_4”,
    “parentid”: “20”,
    “text”: “VAL”,
    “value”: “VAL”
    },
    {
    “id”: “2011_4”,
    “parentid”: “202_4”,
    “text”: “Loading”,
    “value”: “Loading”
    },
    {
    “id”: “202_5”,
    “parentid”: “20”,
    “text”: “VSA”,
    “value”: “VSA,Virginia Retirement System”
    },
    {
    “id”: “2011_5”,
    “parentid”: “202_5”,
    “text”: “Loading”,
    “value”: “Loading”
    },
    {
    “id”: “202_6”,
    “parentid”: “20”,
    “text”: “WCOT”,
    “value”: “WCOT”
    },
    {
    “id”: “2011_6”,
    “parentid”: “202_6”,
    “text”: “Loading”,
    “value”: “Loading”
    }]
    //$(‘#IntermediateSearch’).appraisalSearch(‘Loading’, ”);
    return data;
    }

    function _getMarketobjects() {
    var vData = [{
    “id”: “AL001”,
    “items”: [{
    “label”: “Birmingham”,
    “text”: “Birmingham”,
    “value”: “Birmingham”
    }],
    “label”: “Alabama”,
    “parentid”: “16”,
    “text”: “Alabama”,
    “value”: “AL”
    },
    {
    “id”: “AR”,
    “items”: [{
    “label”: “Little Rock”,
    “value”: “Little Rock”
    }],
    “label”: “Arkansas”,
    “parentid”: “16”,
    “value”: “AR”
    },
    {
    “id”: “AZ”,
    “items”: [{
    “label”: “BLUE”,
    “value”: “BLUE”
    },
    {
    “label”: “Cottonwood Heights”,
    “value”: “Cottonwood Heights”
    },
    {
    “label”: “Mesa”,
    “value”: “Mesa”
    },
    {
    “label”: “PARADISE VALLEY”,
    “value”: “PARADISE VALLEY”
    },
    {
    “label”: “PHOENIX”,
    “value”: “PHOENIX”
    },
    {
    “label”: “Scottsdale”,
    “value”: “Scottsdale”
    },
    {
    “label”: “SUN CITY WEST”,
    “value”: “SUN CITY WEST”
    },
    {
    “label”: “Surprise”,
    “value”: “Surprise”
    },
    {
    “label”: “Tempe”,
    “value”: “Tempe”
    }
    ],
    “label”: “Arizona”,
    “parentid”: “16”,
    “value”: “AZ”
    },
    {
    “id”: “CA”,
    “items”: [{
    “label”: “Agoura Hills”,
    “value”: “Agoura Hills”
    },
    {
    “label”: “Alameda”,
    “value”: “Alameda”
    },
    {
    “label”: “ALISO VIEJO”,
    “value”: “ALISO VIEJO”
    },
    {
    “label”: “ANAHEIM”,
    “value”: “ANAHEIM”
    },
    {
    “label”: “BARONA RANCHERIA”,
    “value”: “BARONA RANCHERIA”
    },
    {
    “label”: “BAY POINT”,
    “value”: “BAY POINT”
    },
    {
    “label”: “BEAUMONT”,
    “value”: “BEAUMONT”
    },
    {
    “label”: “Bell”,
    “value”: “Bell”
    },
    {
    “label”: “Bell Gardens”,
    “value”: “Bell Gardens”
    },
    {
    “label”: “Berkeley”,
    “value”: “Berkeley”
    },
    {
    “label”: “Berkley”,
    “value”: “Berkley”
    },
    {
    “label”: “BLACK POINT”,
    “value”: “BLACK POINT”
    },
    {
    “label”: “BOX SPRINGS”,
    “value”: “BOX SPRINGS”
    },
    {
    “label”: “BRONX”,
    “value”: “BRONX”
    },
    {
    “label”: “Buena Park”,
    “value”: “Buena Park”
    },
    {
    “label”: “Cameron Park”,
    “value”: “Cameron Park”
    },
    {
    “label”: “CAMP PENDLETON”,
    “value”: “CAMP PENDLETON”
    },
    {
    “label”: “CARLSBAD”,
    “value”: “CARLSBAD”
    },
    {
    “label”: “Carmichael”,
    “value”: “Carmichael”
    },
    {
    “label”: “Carson”,
    “value”: “Carson”
    },
    {
    “label”: “CHINO”,
    “value”: “CHINO”
    },
    {
    “label”: “Chula Vista”,
    “value”: “Chula Vista”
    },
    {
    “label”: “City Of Industry”,
    “value”: “City Of Industry”
    },
    {
    “label”: “Colusa”,
    “value”: “Colusa”
    },
    {
    “label”: “Commerce”,
    “value”: “Commerce”
    },
    {
    “label”: “Compton”,
    “value”: “Compton”
    },
    {
    “label”: “CONCORD”,
    “value”: “CONCORD”
    },
    {
    “label”: “Costa Mesa”,
    “value”: “Costa Mesa”
    },
    {
    “label”: “DALLAS”,
    “value”: “DALLAS”
    },
    {
    “label”: “Dana Point”,
    “value”: “Dana Point”
    },
    {
    “label”: “DEL SUR”,
    “value”: “DEL SUR”
    },
    {
    “label”: “EL SEGUNDO”,
    “value”: “EL SEGUNDO”
    },
    {
    “label”: “Emeryville”,
    “value”: “Emeryville”
    },
    {
    “label”: “Foster City”,
    “value”: “Foster City”
    },
    {
    “label”: “Fremont”,
    “value”: “Fremont”
    },
    {
    “label”: “FULLERTON”,
    “value”: “FULLERTON”
    },
    {
    “label”: “Gardena”,
    “value”: “Gardena”
    },
    {
    “label”: “Glendale”,
    “value”: “Glendale”
    },
    {
    “label”: “GUSTINE”,
    “value”: “GUSTINE”
    },
    {
    “label”: “Hayward”,
    “value”: “Hayward”
    },
    {
    “label”: “HILLTOP MALL”,
    “value”: “HILLTOP MALL”
    },
    {
    “label”: “Hollywood”,
    “value”: “Hollywood”
    },
    {
    “label”: “HUNTINGTON BEACH”,
    “value”: “HUNTINGTON BEACH”
    },
    {
    “label”: “HUNTINGTON PARK”,
    “value”: “HUNTINGTON PARK”
    },
    {
    “label”: “INDIO”,
    “value”: “INDIO”
    },
    {
    “label”: “Irvine”,
    “value”: “Irvine”
    },
    {
    “label”: “Kearny Mesa”,
    “value”: “Kearny Mesa”
    },
    {
    “label”: “La Mirada”,
    “value”: “La Mirada”
    },
    {
    “label”: “La Verne”,
    “value”: “La Verne”
    },
    {
    “label”: “Laguna Hills”,
    “value”: “Laguna Hills”
    },
    {
    “label”: “Lancaster”,
    “value”: “Lancaster”
    },
    {
    “label”: “LaVerne”,
    “value”: “LaVerne”
    },
    {
    “label”: “LIVERMORE”,
    “value”: “LIVERMORE”
    },
    {
    “label”: “Long Beach”,
    “value”: “Long Beach”
    },
    {
    “label”: “Los Angeles”,
    “value”: “Los Angeles”
    },
    {
    “label”: “Madison”,
    “value”: “Madison”
    },
    {
    “label”: “MARCH AIR RESERVE BASE”,
    “value”: “MARCH AIR RESERVE BASE”
    },
    {
    “label”: “MARIGOLD”,
    “value”: “MARIGOLD”
    },
    {
    “label”: “Milpitas”,
    “value”: “Milpitas”
    },
    {
    “label”: “Mission Hills”,
    “value”: “Mission Hills”
    },
    {
    “label”: “Mission Viejo”,
    “value”: “Mission Viejo”
    },
    {
    “label”: “MORENO VALLEY”,
    “value”: “MORENO VALLEY”
    },
    {
    “label”: “MOUNTAIN VIEW”,
    “value”: “MOUNTAIN VIEW”
    },
    {
    “label”: “Newbury”,
    “value”: “Newbury”
    },
    {
    “label”: “NEWBURY PARK”,
    “value”: “NEWBURY PARK”
    },
    {
    “label”: “NewburyPark”,
    “value”: “NewburyPark”
    },
    {
    “label”: “Newport Beach”,
    “value”: “Newport Beach”
    },
    {
    “label”: “North Hollywood”,
    “value”: “North Hollywood”
    },
    {
    “label”: “NORTH SACRAMENTO”,
    “value”: “NORTH SACRAMENTO”
    },
    {
    “label”: “NOVATO”,
    “value”: “NOVATO”
    },
    {
    “label”: “OAKLAND”,
    “value”: “OAKLAND”
    },
    {
    “label”: “OCEANSIDE”,
    “value”: “OCEANSIDE”
    },
    {
    “label”: “ONTARIO”,
    “value”: “ONTARIO”
    },
    {
    “label”: “Otay Mesa”,
    “value”: “Otay Mesa”
    },
    {
    “label”: “Pacoima”,
    “value”: “Pacoima”
    },
    {
    “label”: “Palm Desert”,
    “value”: “Palm Desert”
    },
    {
    “label”: “PALM SPRINGS”,
    “value”: “PALM SPRINGS”
    },
    {
    “label”: “Panorama City”,
    “value”: “Panorama City”
    },
    {
    “label”: “Paramount”,
    “value”: “Paramount”
    },
    {
    “label”: “Pasadena”,
    “value”: “Pasadena”
    },
    {
    “label”: “Pentaluma”,
    “value”: “Pentaluma”
    },
    {
    “label”: “Perris”,
    “value”: “Perris”
    },
    {
    “label”: “PETALUMA”,
    “value”: “PETALUMA”
    },
    {
    “label”: “PITTSBURG”,
    “value”: “PITTSBURG”
    },
    {
    “label”: “Pleasant Hill”,
    “value”: “Pleasant Hill”
    },
    {
    “label”: “Portland”,
    “value”: “Portland”
    },
    {
    “label”: “POWAY”,
    “value”: “POWAY”
    },
    {
    “label”: “Rancho Bernardo”,
    “value”: “Rancho Bernardo”
    },
    {
    “label”: “Rancho Cucamonga”,
    “value”: “Rancho Cucamonga”
    },
    {
    “label”: “Rancho Dominguez”,
    “value”: “Rancho Dominguez”
    },
    {
    “label”: “Redlands”,
    “value”: “Redlands”
    },
    {
    “label”: “REDWOOD CITY”,
    “value”: “REDWOOD CITY”
    },
    {
    “label”: “Redwood Shores”,
    “value”: “Redwood Shores”
    },
    {
    “label”: “RIALTO”,
    “value”: “RIALTO”
    },
    {
    “label”: “Richmond”,
    “value”: “Richmond”
    },
    {
    “label”: “RIVERSIDE”,
    “value”: “RIVERSIDE”
    },
    {
    “label”: “Sacramento”,
    “value”: “Sacramento”
    },
    {
    “label”: “SALT LAKE CITY”,
    “value”: “SALT LAKE CITY”
    },
    {
    “label”: “SAN BERNARDINO”,
    “value”: “SAN BERNARDINO”
    },
    {
    “label”: “SAN DIEGO”,
    “value”: “SAN DIEGO”
    },
    {
    “label”: “San Dimas”,
    “value”: “San Dimas”
    },
    {
    “label”: “SAN FRANCISCO”,
    “value”: “SAN FRANCISCO”
    },
    {
    “label”: “SAN JOSE”,
    “value”: “SAN JOSE”
    },
    {
    “label”: “San Mateo”,
    “value”: “San Mateo”
    },
    {
    “label”: “San Ysidro”,
    “value”: “San Ysidro”
    },
    {
    “label”: “Santa Ana”,
    “value”: “Santa Ana”
    },
    {
    “label”: “Santa Clara”,
    “value”: “Santa Clara”
    },
    {
    “label”: “SANTA FE SPRINGS”,
    “value”: “SANTA FE SPRINGS”
    },
    {
    “label”: “SANTA MONICA”,
    “value”: “SANTA MONICA”
    },
    {
    “label”: “Santa Nella”,
    “value”: “Santa Nella”
    },
    {
    “label”: “Santa Rosa”,
    “value”: “Santa Rosa”
    },
    {
    “label”: “Simi Valley”,
    “value”: “Simi Valley”
    },
    {
    “label”: “SOUTH EL MONTE”,
    “value”: “SOUTH EL MONTE”
    },
    {
    “label”: “SOUTH SAN FRANCISCO”,
    “value”: “SOUTH SAN FRANCISCO”
    },
    {
    “label”: “Studio City”,
    “value”: “Studio City”
    },
    {
    “label”: “Sunnyvale”,
    “value”: “Sunnyvale”
    },
    {
    “label”: “Sylmar”,
    “value”: “Sylmar”
    },
    {
    “label”: “Thousand Oaks”,
    “value”: “Thousand Oaks”
    },
    {
    “label”: “Torrance”,
    “value”: “Torrance”
    },
    {
    “label”: “VALLEY VILLAGE”,
    “value”: “VALLEY VILLAGE”
    },
    {
    “label”: “VAN NUYS”,
    “value”: “VAN NUYS”
    },
    {
    “label”: “VERNON”,
    “value”: “VERNON”
    },
    {
    “label”: “VISTA”,
    “value”: “VISTA”
    },
    {
    “label”: “Walnut”,
    “value”: “Walnut”
    },
    {
    “label”: “WOODLAND HILLS”,
    “value”: “WOODLAND HILLS”
    }
    ],
    “label”: “California”,
    “parentid”: “16”,
    “value”: “CA”
    },
    {
    “id”: “CO”,
    “items”: [{
    “label”: “Arapahoe”,
    “value”: “Arapahoe”
    },
    {
    “label”: “Aurora”,
    “value”: “Aurora”
    },
    {
    “label”: “Broomfield”,
    “value”: “Broomfield”
    },
    {
    “label”: “Centennial”,
    “value”: “Centennial”
    },
    {
    “label”: “DENVER”,
    “value”: “DENVER”
    },
    {
    “label”: “ENGELWOOD”,
    “value”: “ENGELWOOD”
    },
    {
    “label”: “Englewood”,
    “value”: “Englewood”
    },
    {
    “label”: “EVERGREEN”,
    “value”: “EVERGREEN”
    },
    {
    “label”: “GOLDEN”,
    “value”: “GOLDEN”
    },
    {
    “label”: “GREENWOOD VILLAGE”,
    “value”: “GREENWOOD VILLAGE”
    }
    ],
    “label”: “Colorado”,
    “parentid”: “16”,
    “value”: “CO”
    },
    {
    “id”: “CT”,
    “items”: [{
    “label”: “BISSELL”,
    “value”: “BISSELL”
    },
    {
    “label”: “BRIDGEPORT”,
    “value”: “BRIDGEPORT”
    },
    {
    “label”: “New Haven”,
    “value”: “New Haven”
    },
    {
    “label”: “NORWALK”,
    “value”: “NORWALK”
    },
    {
    “label”: “Plainville”,
    “value”: “Plainville”
    },
    {
    “label”: “South Windsor”,
    “value”: “South Windsor”
    },
    {
    “label”: “STAMFORD”,
    “value”: “STAMFORD”
    },
    {
    “label”: “Trumbull”,
    “value”: “Trumbull”
    },
    {
    “label”: “WILTON”,
    “value”: “WILTON”
    }
    ],
    “label”: “Connecticut”,
    “parentid”: “16”,
    “value”: “CT”
    },
    {
    “id”: “DC”,
    “items”: [{
    “label”: “Washington”,
    “value”: “Washington”
    },
    {
    “label”: “Westfields”,
    “value”: “Westfields”
    }
    ],
    “label”: “District of Columbia”,
    “parentid”: “16”,
    “value”: “DC”
    },
    {
    “id”: “FL”,
    “items”: [{
    “label”: “Altamonte Springs”,
    “value”: “Altamonte Springs”
    },
    {
    “label”: “APOPKA”,
    “value”: “APOPKA”
    },
    {
    “label”: “Aventura”,
    “value”: “Aventura”
    },
    {
    “label”: “Boca Raton”,
    “value”: “Boca Raton”
    },
    {
    “label”: “Boynton Beach”,
    “value”: “Boynton Beach”
    },
    {
    “label”: “Bradenton”,
    “value”: “Bradenton”
    },
    {
    “label”: “CAPE CORAL”,
    “value”: “CAPE CORAL”
    },
    {
    “label”: “Cape Haze”,
    “value”: “Cape Haze”
    },
    {
    “label”: “CLAIR MEL”,
    “value”: “CLAIR MEL”
    },
    {
    “label”: “Clearwater”,
    “value”: “Clearwater”
    },
    {
    “label”: “CLERMONT”,
    “value”: “CLERMONT”
    },
    {
    “label”: “Coral Gables”,
    “value”: “Coral Gables”
    },
    {
    “label”: “Coral Springs”,
    “value”: “Coral Springs”
    },
    {
    “label”: “DALLAS”,
    “value”: “DALLAS”
    },
    {
    “label”: “Davie”,
    “value”: “Davie”
    },
    {
    “label”: “Daytona Beach”,
    “value”: “Daytona Beach”
    },
    {
    “label”: “DEERFIELD”,
    “value”: “DEERFIELD”
    },
    {
    “label”: “Deerfield Beach”,
    “value”: “Deerfield Beach”
    },
    {
    “label”: “Delray Beach”,
    “value”: “Delray Beach”
    },
    {
    “label”: “DESTIN”,
    “value”: “DESTIN”
    },
    {
    “label”: “Doral”,
    “value”: “Doral”
    },
    {
    “label”: “FORT LAUDERDALE”,
    “value”: “FORT LAUDERDALE”
    },
    {
    “label”: “FORT MYERS”,
    “value”: “FORT MYERS”
    },
    {
    “label”: “FRUIT COVE”,
    “value”: “FRUIT COVE”
    },
    {
    “label”: “Ft. Myers”,
    “value”: “Ft. Myers”
    },
    {
    “label”: “GREEN ACRES”,
    “value”: “GREEN ACRES”
    },
    {
    “label”: “Green Cove Springs”,
    “value”: “Green Cove Springs”
    },
    {
    “label”: “Greenacres”,
    “value”: “Greenacres”
    },
    {
    “label”: “HAVERHILL”,
    “value”: “HAVERHILL”
    },
    {
    “label”: “HOLLYWOOD”,
    “value”: “HOLLYWOOD”
    },
    {
    “label”: “Jacksonvill”,
    “value”: “Jacksonvill”
    },
    {
    “label”: “Jacksonville”,
    “value”: “Jacksonville”
    },
    {
    “label”: “JENSEN BEACH”,
    “value”: “JENSEN BEACH”
    },
    {
    “label”: “Kendall”,
    “value”: “Kendall”
    },
    {
    “label”: “Kissimee”,
    “value”: “Kissimee”
    },
    {
    “label”: “Kissimmee”,
    “value”: “Kissimmee”
    },
    {
    “label”: “LAKE MARY”,
    “value”: “LAKE MARY”
    },
    {
    “label”: “Lake Worth”,
    “value”: “Lake Worth”
    },
    {
    “label”: “LAKELAND”,
    “value”: “LAKELAND”
    },
    {
    “label”: “Largo”,
    “value”: “Largo”
    },
    {
    “label”: “MAITLAND”,
    “value”: “MAITLAND”
    },
    {
    “label”: “Margate”,
    “value”: “Margate”
    },
    {
    “label”: “MELBOURNE”,
    “value”: “MELBOURNE”
    },
    {
    “label”: “MIAMI”,
    “value”: “MIAMI”
    },
    {
    “label”: “Miramar”,
    “value”: “Miramar”
    },
    {
    “label”: “Naples”,
    “value”: “Naples”
    },
    {
    “label”: “New Brunswick”,
    “value”: “New Brunswick”
    },
    {
    “label”: “Newberry”,
    “value”: “Newberry”
    },
    {
    “label”: “NORTH MIAMI BEACH”,
    “value”: “NORTH MIAMI BEACH”
    },
    {
    “label”: “NORTHDALE”,
    “value”: “NORTHDALE”
    },
    {
    “label”: “OCALA”,
    “value”: “OCALA”
    },
    {
    “label”: “Orlando”,
    “value”: “Orlando”
    },
    {
    “label”: “PALM BCH GDNS”,
    “value”: “PALM BCH GDNS”
    },
    {
    “label”: “Palm Beach”,
    “value”: “Palm Beach”
    },
    {
    “label”: “Palm Beach County”,
    “value”: “Palm Beach County”
    },
    {
    “label”: “Palm Beach Gardens”,
    “value”: “Palm Beach Gardens”
    },
    {
    “label”: “PANAMA CITY BEACH”,
    “value”: “PANAMA CITY BEACH”
    },
    {
    “label”: “Pembroke Pines”,
    “value”: “Pembroke Pines”
    },
    {
    “label”: “PINELLAS PARK”,
    “value”: “PINELLAS PARK”
    },
    {
    “label”: “PLACIDA”,
    “value”: “PLACIDA”
    },
    {
    “label”: “Plantation”,
    “value”: “Plantation”
    },
    {
    “label”: “Poinciana”,
    “value”: “Poinciana”
    },
    {
    “label”: “POMPANO BEACH”,
    “value”: “POMPANO BEACH”
    },
    {
    “label”: “Port Charlotte”,
    “value”: “Port Charlotte”
    },
    {
    “label”: “Port Saint Lucie”,
    “value”: “Port Saint Lucie”
    },
    {
    “label”: “Port St Lucie”,
    “value”: “Port St Lucie”
    },
    {
    “label”: “Port St. Lucie”,
    “value”: “Port St. Lucie”
    },
    {
    “label”: “RIVERVIEW”,
    “value”: “RIVERVIEW”
    },
    {
    “label”: “Royal Palm Beach”,
    “value”: “Royal Palm Beach”
    },
    {
    “label”: “SAINT JOHNS”,
    “value”: “SAINT JOHNS”
    },
    {
    “label”: “Sarasota”,
    “value”: “Sarasota”
    },
    {
    “label”: “Stuart”,
    “value”: “Stuart”
    },
    {
    “label”: “Sunny Isles”,
    “value”: “Sunny Isles”
    },
    {
    “label”: “Sunrise”,
    “value”: “Sunrise”
    },
    {
    “label”: “Tamarac”,
    “value”: “Tamarac”
    },
    {
    “label”: “Tampa”,
    “value”: “Tampa”
    },
    {
    “label”: “Viera”,
    “value”: “Viera”
    },
    {
    “label”: “West Palm Beach”,
    “value”: “West Palm Beach”
    },
    {
    “label”: “WINTER GARDEN”,
    “value”: “WINTER GARDEN”
    }
    ],
    “label”: “Florida”,
    “parentid”: “16”,
    “value”: “FL”
    },
    {
    “id”: “GA”,
    “items”: [{
    “label”: “ALPHARETTA”,
    “value”: “ALPHARETTA”
    },
    {
    “label”: “ATHENS”,
    “value”: “ATHENS”
    },
    {
    “label”: “ATL”,
    “value”: “ATL”
    },
    {
    “label”: “Atlanta”,
    “value”: “Atlanta”
    },
    {
    “label”: “Augusta”,
    “value”: “Augusta”
    },
    {
    “label”: “DECATUR”,
    “value”: “DECATUR”
    },
    {
    “label”: “DOUGLASVILLE”,
    “value”: “DOUGLASVILLE”
    },
    {
    “label”: “DULUTH”,
    “value”: “DULUTH”
    },
    {
    “label”: “KENNESAW”,
    “value”: “KENNESAW”
    },
    {
    “label”: “LAWRENCEVILLE”,
    “value”: “LAWRENCEVILLE”
    },
    {
    “label”: “Marietta”,
    “value”: “Marietta”
    },
    {
    “label”: “MCDONOUGH”,
    “value”: “MCDONOUGH”
    },
    {
    “label”: “Norcross”,
    “value”: “Norcross”
    },
    {
    “label”: “Peachtree City”,
    “value”: “Peachtree City”
    },
    {
    “label”: “Pooler”,
    “value”: “Pooler”
    },
    {
    “label”: “ROSWELL”,
    “value”: “ROSWELL”
    },
    {
    “label”: “Suwanee”,
    “value”: “Suwanee”
    }
    ],
    “label”: “Georgia”,
    “parentid”: “16”,
    “value”: “GA”
    },
    {
    “id”: “HI”,
    “items”: [{
    “label”: “Ewa”,
    “value”: “Ewa”
    },
    {
    “label”: “EWA BEACH”,
    “value”: “EWA BEACH”
    },
    {
    “label”: “KAILUA KONA”,
    “value”: “KAILUA KONA”
    },
    {
    “label”: “KAPAA”,
    “value”: “KAPAA”
    },
    {
    “label”: “KAPOLEI”,
    “value”: “KAPOLEI”
    },
    {
    “label”: “Kona”,
    “value”: “Kona”
    }
    ],
    “parentid”: “16”,
    “text”: “Hawaii”,
    “value”: “HI”
    },
    {
    “id”: “IA”,
    “items”: [{
    “label”: “Cedar Rapids”,
    “value”: “Cedar Rapids”
    }],
    “label”: “Iowa”,
    “parentid”: “16”,
    “value”: “IA”
    },
    {
    “id”: “IL”,
    “items”: [{
    “label”: “Aurora”,
    “value”: “Aurora”
    },
    {
    “label”: “BARRINGTON”,
    “value”: “BARRINGTON”
    },
    {
    “label”: “Bartlett”,
    “value”: “Bartlett”
    },
    {
    “label”: “BOLINGBROOK”,
    “value”: “BOLINGBROOK”
    },
    {
    “label”: “Burbank”,
    “value”: “Burbank”
    },
    {
    “label”: “Carol Stream”,
    “value”: “Carol Stream”
    },
    {
    “label”: “Chicago”,
    “value”: “Chicago”
    },
    {
    “label”: “Crystal Lake”,
    “value”: “Crystal Lake”
    },
    {
    “label”: “Deer Park”,
    “value”: “Deer Park”
    },
    {
    “label”: “DES PLAINES”,
    “value”: “DES PLAINES”
    },
    {
    “label”: “EDGEWATER”,
    “value”: “EDGEWATER”
    },
    {
    “label”: “ENGLEWOOD”,
    “value”: “ENGLEWOOD”
    },
    {
    “label”: “GREEN OAKS”,
    “value”: “GREEN OAKS”
    },
    {
    “label”: “Itasca”,
    “value”: “Itasca”
    },
    {
    “label”: “Libertyville”,
    “value”: “Libertyville”
    },
    {
    “label”: “Lombard”,
    “value”: “Lombard”
    },
    {
    “label”: “MOLINE”,
    “value”: “MOLINE”
    },
    {
    “label”: “Naperville”,
    “value”: “Naperville”
    },
    {
    “label”: “NORTHBROOK”,
    “value”: “NORTHBROOK”
    },
    {
    “label”: “Palatine”,
    “value”: “Palatine”
    },
    {
    “label”: “PLAINFIELD”,
    “value”: “PLAINFIELD”
    },
    {
    “label”: “ROLLING MDWS”,
    “value”: “ROLLING MDWS”
    },
    {
    “label”: “Rolling Meadows”,
    “value”: “Rolling Meadows”
    },
    {
    “label”: “Romeoville”,
    “value”: “Romeoville”
    },
    {
    “label”: “Rosemont”,
    “value”: “Rosemont”
    },
    {
    “label”: “San Diego”,
    “value”: “San Diego”
    },
    {
    “label”: “SCHAUMBURG”,
    “value”: “SCHAUMBURG”
    },
    {
    “label”: “Waukegan”,
    “value”: “Waukegan”
    },
    {
    “label”: “WESTMONT”,
    “value”: “WESTMONT”
    },
    {
    “label”: “Wheaton”,
    “value”: “Wheaton”
    },
    {
    “label”: “Woodridge”,
    “value”: “Woodridge”
    },
    {
    “label”: “Zion”,
    “value”: “Zion”
    }
    ],
    “label”: “Illinois”,
    “parentid”: “16”,
    “value”: “IL”
    },
    {
    “id”: “IN”,
    “items”: [{
    “label”: “Carmel”,
    “value”: “Carmel”
    },
    {
    “label”: “Fishers”,
    “value”: “Fishers”
    },
    {
    “label”: “Indianapolis”,
    “value”: “Indianapolis”
    },
    {
    “label”: “Plainfield”,
    “value”: “Plainfield”
    }
    ],
    “label”: “Indiana”,
    “parentid”: “16”,
    “value”: “IN”
    },
    {
    “id”: “KS”,
    “items”: [{
    “label”: “KANSAS CITY”,
    “value”: “KANSAS CITY”
    },
    {
    “label”: “Overland Park”,
    “value”: “Overland Park”
    },
    {
    “label”: “SAINT LOUIS”,
    “value”: “SAINT LOUIS”
    },
    {
    “label”: “St. Louis”,
    “value”: “St. Louis”
    }
    ],
    “label”: “Kansas”,
    “parentid”: “16”,
    “value”: “KS”
    },
    {
    “id”: “KY”,
    “items”: [{
    “label”: “Louisville”,
    “value”: “Louisville”
    }],
    “label”: “Kentucky”,
    “parentid”: “16”,
    “value”: “KY”
    },
    {
    “id”: “LA”,
    “items”: [{
    “label”: “New Orleans”,
    “value”: “New Orleans”
    }],
    “label”: “Louisiana”,
    “parentid”: “16”,
    “value”: “LA”
    },
    {
    “id”: “MA”,
    “items”: [{
    “label”: “Auburn”,
    “value”: “Auburn”
    },
    {
    “label”: “BELMONT”,
    “value”: “BELMONT”
    },
    {
    “label”: “Boston”,
    “value”: “Boston”
    },
    {
    “label”: “Brockton”,
    “value”: “Brockton”
    },
    {
    “label”: “Burlington”,
    “value”: “Burlington”
    },
    {
    “label”: “CAMBRIDGE”,
    “value”: “CAMBRIDGE”
    },
    {
    “label”: “CHARLESTOWN”,
    “value”: “CHARLESTOWN”
    },
    {
    “label”: “DANVERS”,
    “value”: “DANVERS”
    },
    {
    “label”: “EAST TAUNTON”,
    “value”: “EAST TAUNTON”
    },
    {
    “label”: “FALL RIVER”,
    “value”: “FALL RIVER”
    },
    {
    “label”: “Foxboro”,
    “value”: “Foxboro”
    },
    {
    “label”: “Hudson”,
    “value”: “Hudson”
    },
    {
    “label”: “Lexington”,
    “value”: “Lexington”
    },
    {
    “label”: “Littleton”,
    “value”: “Littleton”
    },
    {
    “label”: “Metheun”,
    “value”: “Metheun”
    },
    {
    “label”: “NORTH WALTHAM”,
    “value”: “NORTH WALTHAM”
    },
    {
    “label”: “Quarry”,
    “value”: “Quarry”
    },
    {
    “label”: “QUINCY”,
    “value”: “QUINCY”
    },
    {
    “label”: “Revere”,
    “value”: “Revere”
    },
    {
    “label”: “Sayerville”,
    “value”: “Sayerville”
    },
    {
    “label”: “Springfield”,
    “value”: “Springfield”
    },
    {
    “label”: “Stoughton”,
    “value”: “Stoughton”
    },
    {
    “label”: “Various”,
    “value”: “Various”
    },
    {
    “label”: “Walpole”,
    “value”: “Walpole”
    },
    {
    “label”: “WALTHAM”,
    “value”: “WALTHAM”
    },
    {
    “label”: “Wellesley”,
    “value”: “Wellesley”
    },
    {
    “label”: “WELLESLEY HILLS”,
    “value”: “WELLESLEY HILLS”
    },
    {
    “label”: “WOBURN”,
    “value”: “WOBURN”
    },
    {
    “label”: “Worcester”,
    “value”: “Worcester”
    }
    ],
    “label”: “Massachusetts”,
    “parentid”: “16”,
    “value”: “MA”
    },
    {
    “id”: “MD”,
    “items”: [{
    “label”: “ABERDEEN”,
    “value”: “ABERDEEN”
    },
    {
    “label”: “ANNAPOLIS”,
    “value”: “ANNAPOLIS”
    },
    {
    “label”: “Baltimore”,
    “value”: “Baltimore”
    },
    {
    “label”: “Bel Air”,
    “value”: “Bel Air”
    },
    {
    “label”: “Bethesda”,
    “value”: “Bethesda”
    },
    {
    “label”: “Catonsville”,
    “value”: “Catonsville”
    },
    {
    “label”: “CLARKSBURG”,
    “value”: “CLARKSBURG”
    },
    {
    “label”: “COCKEYSVILLE”,
    “value”: “COCKEYSVILLE”
    },
    {
    “label”: “Columbia”,
    “value”: “Columbia”
    },
    {
    “label”: “Crofton”,
    “value”: “Crofton”
    },
    {
    “label”: “ELKRIDGE”,
    “value”: “ELKRIDGE”
    },
    {
    “label”: “Ellicott City”,
    “value”: “Ellicott City”
    },
    {
    “label”: “Ferndale”,
    “value”: “Ferndale”
    },
    {
    “label”: “Gaithersburg”,
    “value”: “Gaithersburg”
    },
    {
    “label”: “Gambrills”,
    “value”: “Gambrills”
    },
    {
    “label”: “GARRISON”,
    “value”: “GARRISON”
    },
    {
    “label”: “HANOVER”,
    “value”: “HANOVER”
    },
    {
    “label”: “Hunt Valley”,
    “value”: “Hunt Valley”
    },
    {
    “label”: “HYATTSVILLE”,
    “value”: “HYATTSVILLE”
    },
    {
    “label”: “LANHAM”,
    “value”: “LANHAM”
    },
    {
    “label”: “LAUREL”,
    “value”: “LAUREL”
    },
    {
    “label”: “LUTHERVILLE TIMONIUM”,
    “value”: “LUTHERVILLE TIMONIUM”
    },
    {
    “label”: “MIDDLE RIVER”,
    “value”: “MIDDLE RIVER”
    },
    {
    “label”: “Owings Mills”,
    “value”: “Owings Mills”
    },
    {
    “label”: “PERRYMAN”,
    “value”: “PERRYMAN”
    },
    {
    “label”: “ROCKVILLE”,
    “value”: “ROCKVILLE”
    },
    {
    “label”: “SILVER SPRING”,
    “value”: “SILVER SPRING”
    },
    {
    “label”: “Timonium”,
    “value”: “Timonium”
    },
    {
    “label”: “UPPER MARLBORO”,
    “value”: “UPPER MARLBORO”
    },
    {
    “label”: “Westminister”,
    “value”: “Westminister”
    },
    {
    “label”: “WESTMINSTER”,
    “value”: “WESTMINSTER”
    },
    {
    “label”: “WHEATON”,
    “value”: “WHEATON”
    }
    ],
    “label”: “Maryland”,
    “parentid”: “16”,
    “value”: “MD”
    },
    {
    “id”: “MI”,
    “items”: [{
    “label”: “BROWNSTOWN”,
    “value”: “BROWNSTOWN”
    },
    {
    “label”: “Fraser”,
    “value”: “Fraser”
    },
    {
    “label”: “Grand Rapids”,
    “value”: “Grand Rapids”
    },
    {
    “label”: “Novi”,
    “value”: “Novi”
    },
    {
    “label”: “Orlando”,
    “value”: “Orlando”
    },
    {
    “label”: “Pontiac”,
    “value”: “Pontiac”
    },
    {
    “label”: “ROMULUS”,
    “value”: “ROMULUS”
    },
    {
    “label”: “Troy”,
    “value”: “Troy”
    }
    ],
    “label”: “Michigan”,
    “parentid”: “16”,
    “value”: “MI”
    },
    {
    “id”: “MN”,
    “items”: [{
    “label”: “CORCORAN”,
    “value”: “CORCORAN”
    },
    {
    “label”: “HOPKINS”,
    “value”: “HOPKINS”
    },
    {
    “label”: “Maple Grove”,
    “value”: “Maple Grove”
    },
    {
    “label”: “Minneapolis”,
    “value”: “Minneapolis”
    },
    {
    “label”: “New Hope”,
    “value”: “New Hope”
    },
    {
    “label”: “Oak Park Heights”,
    “value”: “Oak Park Heights”
    },
    {
    “label”: “OSSEO”,
    “value”: “OSSEO”
    },
    {
    “label”: “Rochester”,
    “value”: “Rochester”
    },
    {
    “label”: “Saint Paul”,
    “value”: “Saint Paul”
    },
    {
    “label”: “Savage”,
    “value”: “Savage”
    },
    {
    “label”: “Spring Park”,
    “value”: “Spring Park”
    },
    {
    “label”: “St. Paul”,
    “value”: “St. Paul”
    }
    ],
    “label”: “Minnesota”,
    “parentid”: “16”,
    “value”: “MN”
    },
    {
    “id”: “MO”,
    “items”: [{
    “label”: “HAZELWOOD”,
    “value”: “HAZELWOOD”
    },
    {
    “label”: “Independence”,
    “value”: “Independence”
    },
    {
    “label”: “KANSAS CITY”,
    “value”: “KANSAS CITY”
    },
    {
    “label”: “Richmond Heights”,
    “value”: “Richmond Heights”
    },
    {
    “label”: “Saint Louis”,
    “value”: “Saint Louis”
    },
    {
    “label”: “St. Louis”,
    “value”: “St. Louis”
    }
    ],
    “label”: “Missouri”,
    “parentid”: “16”,
    “value”: “MO”
    },
    {
    “id”: “MS”,
    “items”: [{
    “label”: “DALLAS”,
    “value”: “DALLAS”
    },
    {
    “label”: “DIBERVILLE”,
    “value”: “DIBERVILLE”
    },
    {
    “label”: “TUPELO”,
    “value”: “TUPELO”
    }
    ],
    “label”: “Mississippi”,
    “parentid”: “16”,
    “value”: “MS”
    },
    {
    “id”: “NC”,
    “items”: [{
    “label”: “Asheville”,
    “value”: “Asheville”
    },
    {
    “label”: “CARY”,
    “value”: “CARY”
    },
    {
    “label”: “Charlotte”,
    “value”: “Charlotte”
    },
    {
    “label”: “Durham”,
    “value”: “Durham”
    },
    {
    “label”: “Greensboro”,
    “value”: “Greensboro”
    },
    {
    “label”: “MORRISVILLE”,
    “value”: “MORRISVILLE”
    },
    {
    “label”: “Raleigh”,
    “value”: “Raleigh”
    }
    ],
    “label”: “North Carolina”,
    “parentid”: “16”,
    “value”: “NC”
    },
    {
    “id”: “NJ”,
    “items”: [{
    “label”: “ARLINGTON”,
    “value”: “ARLINGTON”
    },
    {
    “label”: “BERGENLINE”,
    “value”: “BERGENLINE”
    },
    {
    “label”: “Bridgewater”,
    “value”: “Bridgewater”
    },
    {
    “label”: “CLIFTON”,
    “value”: “CLIFTON”
    },
    {
    “label”: “Cranbury”,
    “value”: “Cranbury”
    },
    {
    “label”: “East Millstone”,
    “value”: “East Millstone”
    },
    {
    “label”: “Elizabeth”,
    “value”: “Elizabeth”
    },
    {
    “label”: “FORT LEE”,
    “value”: “FORT LEE”
    },
    {
    “label”: “GUTTENBERG”,
    “value”: “GUTTENBERG”
    },
    {
    “label”: “Hoboken”,
    “value”: “Hoboken”
    },
    {
    “label”: “Jersey City”,
    “value”: “Jersey City”
    },
    {
    “label”: “Kearny”,
    “value”: “Kearny”
    },
    {
    “label”: “Monroe”,
    “value”: “Monroe”
    },
    {
    “label”: “MORRISTOWN”,
    “value”: “MORRISTOWN”
    },
    {
    “label”: “New Brunswick”,
    “value”: “New Brunswick”
    },
    {
    “label”: “OLD TAPPAN”,
    “value”: “OLD TAPPAN”
    },
    {
    “label”: “PARSIPPANY”,
    “value”: “PARSIPPANY”
    },
    {
    “label”: “RARITAN”,
    “value”: “RARITAN”
    },
    {
    “label”: “RIVER EDGE”,
    “value”: “RIVER EDGE”
    },
    {
    “label”: “RIVERDALE”,
    “value”: “RIVERDALE”
    },
    {
    “label”: “SAYREVILLE”,
    “value”: “SAYREVILLE”
    },
    {
    “label”: “Somerset”,
    “value”: “Somerset”
    },
    {
    “label”: “Summit”,
    “value”: “Summit”
    },
    {
    “label”: “Swedesboro”,
    “value”: “Swedesboro”
    },
    {
    “label”: “Trenton”,
    “value”: “Trenton”
    },
    {
    “label”: “Union City”,
    “value”: “Union City”
    },
    {
    “label”: “Waltham”,
    “value”: “Waltham”
    },
    {
    “label”: “Warren”,
    “value”: “Warren”
    },
    {
    “label”: “Washington Twnshp”,
    “value”: “Washington Twnshp”
    },
    {
    “label”: “WEEHAWKEN”,
    “value”: “WEEHAWKEN”
    },
    {
    “label”: “WEST NEW YORK”,
    “value”: “WEST NEW YORK”
    },
    {
    “label”: “West Windsor”,
    “value”: “West Windsor”
    },
    {
    “label”: “Westwood”,
    “value”: “Westwood”
    }
    ],
    “label”: “New Jersey”,
    “parentid”: “16”,
    “value”: “NJ”
    },
    {
    “id”: “NM”,
    “items”: [{
    “label”: “Albuquerque”,
    “value”: “Albuquerque”
    }],
    “label”: “New Mexico”,
    “parentid”: “16”,
    “value”: “NM”
    },
    {
    “id”: “NV”,
    “items”: [{
    “label”: “Las Vegas”,
    “value”: “Las Vegas”
    },
    {
    “label”: “NORTH LAS VEGAS”,
    “value”: “NORTH LAS VEGAS”
    }
    ],
    “label”: “Nevada”,
    “parentid”: “16”,
    “value”: “NV”
    },
    {
    “id”: “NY”,
    “items”: [{
    “label”: “BALLSTON SPA”,
    “value”: “BALLSTON SPA”
    },
    {
    “label”: “Brentwood”,
    “value”: “Brentwood”
    },
    {
    “label”: “Brooklyn”,
    “value”: “Brooklyn”
    },
    {
    “label”: “EAST GLENVILLE”,
    “value”: “EAST GLENVILLE”
    },
    {
    “label”: “GARDEN CITY”,
    “value”: “GARDEN CITY”
    },
    {
    “label”: “GRAND CENTRAL”,
    “value”: “GRAND CENTRAL”
    },
    {
    “label”: “HEMPSTEAD”,
    “value”: “HEMPSTEAD”
    },
    {
    “label”: “LONG ISLAND CITY”,
    “value”: “LONG ISLAND CITY”
    },
    {
    “label”: “Malta”,
    “value”: “Malta”
    },
    {
    “label”: “Manhattan”,
    “value”: “Manhattan”
    },
    {
    “label”: “MELVILLE”,
    “value”: “MELVILLE”
    },
    {
    “label”: “Mineola”,
    “value”: “Mineola”
    },
    {
    “label”: “NEW HYDE PARK”,
    “value”: “NEW HYDE PARK”
    },
    {
    “label”: “New York”,
    “value”: “New York”
    },
    {
    “label”: “Rockville”,
    “value”: “Rockville”
    },
    {
    “label”: “ROCKVILLE CENTRE”,
    “value”: “ROCKVILLE CENTRE”
    },
    {
    “label”: “SALT LAKE CITY”,
    “value”: “SALT LAKE CITY”
    },
    {
    “label”: “SCHENECTADY”,
    “value”: “SCHENECTADY”
    },
    {
    “label”: “SOMERS”,
    “value”: “SOMERS”
    }
    ],
    “label”: “New York”,
    “parentid”: “16”,
    “value”: “NY”
    },
    {
    “id”: “OH”,
    “items”: [{
    “label”: “Beachwood”,
    “value”: “Beachwood”
    },
    {
    “label”: “Cincinnati”,
    “value”: “Cincinnati”
    },
    {
    “label”: “CLEVELAND”,
    “value”: “CLEVELAND”
    },
    {
    “label”: “Dayton”,
    “value”: “Dayton”
    },
    {
    “label”: “Fairfield”,
    “value”: “Fairfield”
    },
    {
    “label”: “North Olmstead”,
    “value”: “North Olmstead”
    },
    {
    “label”: “PERRYSBURG”,
    “value”: “PERRYSBURG”
    },
    {
    “label”: “Richmond Heights”,
    “value”: “Richmond Heights”
    },
    {
    “label”: “Westlake”,
    “value”: “Westlake”
    }
    ],
    “label”: “Ohio”,
    “parentid”: “16”,
    “value”: “OH”
    },
    {
    “id”: “OK”,
    “items”: [{
    “label”: “Oklahoma City”,
    “value”: “Oklahoma City”
    }],
    “label”: “Oklahoma”,
    “parentid”: “16”,
    “value”: “OK”
    },
    {
    “id”: “OR”,
    “items”: [{
    “label”: “Eugene”,
    “value”: “Eugene”
    },
    {
    “label”: “HELVETIA”,
    “value”: “HELVETIA”
    },
    {
    “label”: “Hillsboro”,
    “value”: “Hillsboro”
    },
    {
    “label”: “Portland”,
    “value”: “Portland”
    }
    ],
    “label”: “Oregon”,
    “parentid”: “16”,
    “value”: “OR”
    },
    {
    “id”: “PA”,
    “items”: [{
    “label”: “Allentown”,
    “value”: “Allentown”
    },
    {
    “label”: “Bala Cynwyd”,
    “value”: “Bala Cynwyd”
    },
    {
    “label”: “BENSALEM”,
    “value”: “BENSALEM”
    },
    {
    “label”: “Center Valley”,
    “value”: “Center Valley”
    },
    {
    “label”: “Doylestown”,
    “value”: “Doylestown”
    },
    {
    “label”: “FEASTERVILLE TREVOSE”,
    “value”: “FEASTERVILLE TREVOSE”
    },
    {
    “label”: “Gaines”,
    “value”: “Gaines”
    },
    {
    “label”: “IRWIN”,
    “value”: “IRWIN”
    },
    {
    “label”: “MACUNGIE”,
    “value”: “MACUNGIE”
    },
    {
    “label”: “MALVERN”,
    “value”: “MALVERN”
    },
    {
    “label”: “NORRISTOWN”,
    “value”: “NORRISTOWN”
    },
    {
    “label”: “Pittsburgh”,
    “value”: “Pittsburgh”
    },
    {
    “label”: “Plymouth Meeting”,
    “value”: “Plymouth Meeting”
    },
    {
    “label”: “POTTSTOWN”,
    “value”: “POTTSTOWN”
    },
    {
    “label”: “Radnor”,
    “value”: “Radnor”
    },
    {
    “label”: “UPPER MACUNGIE TS”,
    “value”: “UPPER MACUNGIE TS”
    },
    {
    “label”: “Upper Saucon Townshi”,
    “value”: “Upper Saucon Townshi”
    },
    {
    “label”: “VALLEY FORGE”,
    “value”: “VALLEY FORGE”
    }
    ],
    “label”: “Pennsylvania”,
    “parentid”: “16”,
    “value”: “PA”
    },
    {
    “id”: “RI”,
    “items”: [{
    “label”: “WAKEFIELD”,
    “value”: “WAKEFIELD”
    }],
    “label”: “Rhode Island”,
    “parentid”: “16”,
    “value”: “RI”
    },
    {
    “id”: “SC”,
    “items”: [{
    “label”: “CHARLESTON”,
    “value”: “CHARLESTON”
    },
    {
    “label”: “GREENVILLE”,
    “value”: “GREENVILLE”
    }
    ],
    “label”: “South Carolina”,
    “parentid”: “16”,
    “value”: “SC”
    },
    {
    “id”: “TN”,
    “items”: [{
    “label”: “BRENTWOOD”,
    “value”: “BRENTWOOD”
    },
    {
    “label”: “Franklin”,
    “value”: “Franklin”
    },
    {
    “label”: “Knoxville”,
    “value”: “Knoxville”
    },
    {
    “label”: “Nashville”,
    “value”: “Nashville”
    }
    ],
    “label”: “Tennessee”,
    “parentid”: “16”,
    “value”: “TN”
    },
    {
    “id”: “TX”,
    “items”: [{
    “label”: “Arlington”,
    “value”: “Arlington”
    },
    {
    “label”: “Austin”,
    “value”: “Austin”
    },
    {
    “label”: “Baytown”,
    “value”: “Baytown”
    },
    {
    “label”: “Cear Hill”,
    “value”: “Cear Hill”
    },
    {
    “label”: “Cedar Hill”,
    “value”: “Cedar Hill”
    },
    {
    “label”: “DALLAS”,
    “value”: “DALLAS”
    },
    {
    “label”: “FAIRVIEW”,
    “value”: “FAIRVIEW”
    },
    {
    “label”: “FLOWER MOUND”,
    “value”: “FLOWER MOUND”
    },
    {
    “label”: “FORT WORTH”,
    “value”: “FORT WORTH”
    },
    {
    “label”: “Ft Worth”,
    “value”: “Ft Worth”
    },
    {
    “label”: “Grapevine”,
    “value”: “Grapevine”
    },
    {
    “label”: “HEIGHTS”,
    “value”: “HEIGHTS”
    },
    {
    “label”: “HOUSTON”,
    “value”: “HOUSTON”
    },
    {
    “label”: “IRVING”,
    “value”: “IRVING”
    },
    {
    “label”: “KLEIN”,
    “value”: “KLEIN”
    },
    {
    “label”: “LEWISVILLE”,
    “value”: “LEWISVILLE”
    },
    {
    “label”: “Mansfield”,
    “value”: “Mansfield”
    },
    {
    “label”: “McKinney”,
    “value”: “McKinney”
    },
    {
    “label”: “MISSION”,
    “value”: “MISSION”
    },
    {
    “label”: “MISSOURI CITY”,
    “value”: “MISSOURI CITY”
    },
    {
    “label”: “Pearland”,
    “value”: “Pearland”
    },
    {
    “label”: “Plano”,
    “value”: “Plano”
    },
    {
    “label”: “Richardson”,
    “value”: “Richardson”
    },
    {
    “label”: “Roanoke”,
    “value”: “Roanoke”
    },
    {
    “label”: “Round Rock”,
    “value”: “Round Rock”
    },
    {
    “label”: “San Antonio”,
    “value”: “San Antonio”
    },
    {
    “label”: “Sherman”,
    “value”: “Sherman”
    },
    {
    “label”: “SPRING”,
    “value”: “SPRING”
    },
    {
    “label”: “Stafford”,
    “value”: “Stafford”
    },
    {
    “label”: “Sugar Land”,
    “value”: “Sugar Land”
    },
    {
    “label”: “TEXAS CITY”,
    “value”: “TEXAS CITY”
    }
    ],
    “label”: “Texas”,
    “parentid”: “16”,
    “value”: “TX”
    },
    {
    “id”: “UT”,
    “items”: [{
    “label”: “BRIGHTON”,
    “value”: “BRIGHTON”
    },
    {
    “label”: “Cottonwood Heights”,
    “value”: “Cottonwood Heights”
    },
    {
    “label”: “Draper”,
    “value”: “Draper”
    },
    {
    “label”: “Salt Lake City”,
    “value”: “Salt Lake City”
    }
    ],
    “label”: “Utah”,
    “parentid”: “16”,
    “value”: “UT”
    },
    {
    “id”: “VA”,
    “items”: [{
    “label”: “Alexandria”,
    “value”: “Alexandria”
    },
    {
    “label”: “ARLINGTON”,
    “value”: “ARLINGTON”
    },
    {
    “label”: “Arlington VA”,
    “value”: “Arlington VA”
    },
    {
    “label”: “Chesapeake”,
    “value”: “Chesapeake”
    },
    {
    “label”: “FAIRFAX”,
    “value”: “FAIRFAX”
    },
    {
    “label”: “HERNDON”,
    “value”: “HERNDON”
    },
    {
    “label”: “LEESBURG”,
    “value”: “LEESBURG”
    },
    {
    “label”: “MC LEAN”,
    “value”: “MC LEAN”
    },
    {
    “label”: “Merrifield”,
    “value”: “Merrifield”
    },
    {
    “label”: “Portsmouth”,
    “value”: “Portsmouth”
    },
    {
    “label”: “Reston”,
    “value”: “Reston”
    },
    {
    “label”: “RICHMOND”,
    “value”: “RICHMOND”
    },
    {
    “label”: “Staunton”,
    “value”: “Staunton”
    },
    {
    “label”: “Sterling”,
    “value”: “Sterling”
    },
    {
    “label”: “SUFFOLK”,
    “value”: “SUFFOLK”
    },
    {
    “label”: “Vienna”,
    “value”: “Vienna”
    },
    {
    “label”: “Virginia Beach”,
    “value”: “Virginia Beach”
    },
    {
    “label”: “WILLIAMSBURG”,
    “value”: “WILLIAMSBURG”
    }
    ],
    “label”: “Virginia”,
    “parentid”: “16”,
    “value”: “VA”
    },
    {
    “id”: “WA”,
    “items”: [{
    “label”: “Bellevue”,
    “value”: “Bellevue”
    },
    {
    “label”: “BELLINGHAM”,
    “value”: “BELLINGHAM”
    },
    {
    “label”: “BONNEY LAKE”,
    “value”: “BONNEY LAKE”
    },
    {
    “label”: “Bremerton”,
    “value”: “Bremerton”
    },
    {
    “label”: “KIRKLAND”,
    “value”: “KIRKLAND”
    },
    {
    “label”: “LACEY”,
    “value”: “LACEY”
    },
    {
    “label”: “Lynnwood”,
    “value”: “Lynnwood”
    },
    {
    “label”: “Olympia”,
    “value”: “Olympia”
    },
    {
    “label”: “REDMOND”,
    “value”: “REDMOND”
    },
    {
    “label”: “Renton”,
    “value”: “Renton”
    },
    {
    “label”: “Seattle”,
    “value”: “Seattle”
    },
    {
    “label”: “South Everett”,
    “value”: “South Everett”
    },
    {
    “label”: “Sumner”,
    “value”: “Sumner”
    },
    {
    “label”: “Tacoma”,
    “value”: “Tacoma”
    },
    {
    “label”: “Vancouver”,
    “value”: “Vancouver”
    }
    ],
    “label”: “Washington”,
    “parentid”: “16”,
    “value”: “WA”
    }
    ]

    return vData;
    }
    </script>
    </head>
    <body class=’default’>

    <div style=”width: 30%”>
    <div>
    <input id=”btnAdd” type=”button” value=”Add Portfolio” />
    </div>
    <div id=’jqxNavigationBar’>
    <div>Tree 1</div>
    <div>
    <div id=”jqxTree”>
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>

     

    treeview expand event issue #32833

    Dimitar
    Participant

    Hello Parmesh,

    We tested your example and were able to successfully expand both Market instances (expanding shows a list of states). Please make sure you are using the latest version of jQWidgets (3.0.4).

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    treeview expand event issue #32841

    Parmesh
    Participant

    Hi Dimitar,

    Yes I am using 3.0.4 version in my demo example. for me its not working. It is working when we expand the market node from the recently added tree or newly added tree first. but if we select the same thing from default tree after adding new tree. it is not working. this is happing when add the items dynamically.

    Please check the following cases.

    Case: working case

    1)click on the button, it will add one navigation item along with tree
    2)now open the market branch from the recently added tree view
    3) and then do the same thing from default one.
    it will work

    Case 2: not working

    1)click on the button, it will add one navigation item along with tree
    2)now open the market branch from default one.
    3) then do the same thing from recently added one.

    I am using chrome version 30.0.1599.101

    treeview expand event issue #32917

    Dimitar
    Participant

    Hi Parmesh,

    After further investigation of your code, we have found that your way of loading items on demand is not correct. Please check out the demo Load on Demand with Ajax for the proper way. Please note, however, that jqxTree does not support large numbers of items and therefore, you can experience some unexpected behaviour.

    On a side note, we recommend loading any widgets inside jqxNavigationBar in the initContent callback function. Here is an excerpt from the API Documentation about it:

    Callback function called when an item’s content needs to be initialized. Useful for initializing other widgets within the content of any of the items of jqxNavigationBar. The index argument shows which item is initialized.

    Code example

    Set the initContent property.

    $(“#jqxNavigationBar”).jqxNavigationBar({initContent: function (index)
    {
    $(“#jqxButton”).jqxButton({ width: 100, height: 50 });
    }
    });

    Best Regards,
    Dimitar

    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.