jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: jqxDropDownList lazy load jqxDropDownList lazy load #64680

    AFraga
    Participant

    •filteritems – sets the items displayed in the list filter – when the “showfilterrow” property value is true and the filter’s type is “list” or “checkedlist”. The expected value is Array or jqxDataAdapter instance.

    I’m talking about the url of the jqxDataAdapter instance.

    in reply to: jqxDropDownList lazy load jqxDropDownList lazy load #64622

    AFraga
    Participant

    Here is a small code that i think is working but render bad the dropdownlist

    Problem: My source bring arround 50 rows, the dropdownlist show only 5, without scrollbar.

    var source =
    {
        cache: false,
        datatype: "xml",//<rows><row mycolumn="Value" />...</rows>
        datafields: [
            {
                name: 'Label', map: function (obj) {
                    return $(obj).attr("MyColumn");
                },
            }
        ],
        root: "Rows",
        id: "ID",
        record: "Row",
        processData: function (data) {
            //Set which column i need to populate the unique values in the dropdownlist
            return data;
        },
        url: "../GetFilters.ashx"
    };
    var dataAdapter = new $.jqx.dataAdapter(source, { async: false });
    
    createfilterwidget : function (column, columnElement, widget) {
    
        widget.jqxDropDownList({
            displayMember: "Label",
            valueMember: "Label",
            width: '100%',
            checkboxes: true,
            dropDownWidth: 300,
            animationType : 'none'
        });
        widget.on('open', function (event) {
            widget.jqxDropDownList({ source: dataAdapter});
        });
    }
    in reply to: jqxDropDownList lazy load jqxDropDownList lazy load #64620

    AFraga
    Participant

    The problem using filteritems property is that the url is being hitted twice per column!

    And what i want is a “LAZY LOAD” or a “LATE LOAD”, that the dropdownlist get populated! only if the user open the filter!

    Imagine that I have a JQXGrid with thousand of rows, and 10 columns! its not good that the server is beeing hit 20 times! specialy
    if their are not going to filter any column!

    Thanks.

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