jQWidgets Forums

Forum Replies Created

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

  • klodenet
    Member

    Someone can help me using a local JSON data?


    klodenet
    Member

    You are right, the code is correct on my file Js. I’ve erroneous write by hand the code, without check it.
    sorry for the inconvenience. Instead, the code on my file is:

             var sourceFps = { 
    localdata: Lib.list,
    id:"id",
    datatype: "json"
    datafields:[ {name:"id"}, {name:"label"}, {name:"value"} ]
    };
    dataSource = new $.jqx.dataAdapter(sourceFps);
    $("#listCombo").jqxComboBox({source:dataSource, displayMember:"label", valueMember:"value", width:50, theme:"ui-redmond"} );

    In particular, Lib.list is an array of object.

    Have you tried to use this code, for a test?

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