jQuery UI Widgets Forums Lists ListBox Filterable: true when using JSON?

This topic contains 3 replies, has 2 voices, and was last updated by  realtek 8 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Filterable: true when using JSON? #78125

    realtek
    Participant

    Hi,

    Does filtering work for list boxes when using a JSON source?

    I set filterable: true but it is not even displaying the input field?

    Thanks

    Filterable: true when using JSON? #78172

    ivailo
    Participant

    Hi realtek,

    It works works well as expected.
    Here is a demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Filterable: true when using JSON? #78253

    realtek
    Participant

    Hi Ivailo,

    I must be going mad, here is my code but the filter box is not showing still?

       var url = "/api/List";
            // prepare the data
            var source =
                    {
                        data: {
                            SEQ: editSeq
                        },
                        datatype: "json",
                        datafields: [
                            { name: 'DisplayName' },
                            { name: 'Sequence' },
                            { name: 'Type' },
                            { name: 'SeqParent' }
                        ],
                        id: 'Sequence',
                        url: url,
                        type: "POST",
                        async: true
                    };
            var dataAdapter = new $.jqx.dataAdapter(source);
    
            // Create a jqxListBox
            $("#ListBox").jqxListBox({ source: dataAdapter, filterable: true, checkboxes: true, allowDrag: false, enableSelection: true, equalItemsWidth: true, displayMember: "DisplayName", valueMember: "Sequence", width: '220px', height: '250px', theme: theme });
    

    Thanks

    Filterable: true when using JSON? #78260

    realtek
    Participant

    ok, i’m not going mad 🙂

    I was testing this by publishing in Visual Studio and forgot to enable the option to delete all the existing files first.

    What was happening was because I had changed some file names, none of my changes were being referenced because the old files still existed.

    I could see in a web debugger that the old files were still being used!

    Sorry about this and thanks ivailo!

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

You must be logged in to reply to this topic.