jQWidgets Forums

jQuery UI Widgets Forums Grid Grid combobox server side filtering & ordering

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 8 years, 11 months ago.

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

  • jservingo
    Participant

    Hi, When I try to filter the grid by a column with a combobox, in the server side I get the displayfield: ‘funnel’ instead of the datafield: ‘id_funnel’. I want to use the id in order to filter de data. How can i get the id value in the server side?

    This is the code of the funnel column that I use

    { text: ‘Funnel’, datafield: ‘id_funnel’, displayfield: ‘funnel’,
    filtertype: ‘list’, filteritems : funnels_dataAdapter,
    width: ‘20%’, columntype: ‘combobox’,
    createeditor: function (row, column, editor) {
    editor.jqxComboBox({
    selectedIndex: 0,
    source: funnels_dataAdapter,
    searchMode: ‘containsignorecase’,
    autoComplete: true,
    remoteAutoComplete: false,
    dropDownHeight: 250,
    displayMember: ‘funnel’,
    valueMember: ‘id_funnel’
    });
    },
    geteditorvalue: function (row, cellvalue, editor) {
    var item = editor.jqxComboBox(‘getSelectedItem’);
    return item;
    },
    initeditor: function (row, column, editor) {
    editor.jqxComboBox(‘selectIndex’, 0);
    },
    }

    Everything work ok but in the server side I need to use the id_funnel

    Thank you in advance


    Peter Stoev
    Keymaster

    Hi jservingo,

    Send the data params to the server which you want to use for the filtering. You should do this in the adapter’s formatData callback as shown in the ComboBox’s remote search demo.

    Best Regards,
    Peter Stoev

    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.