jQuery UI Widgets Forums Grid Labeling filter values in grid

This topic contains 3 replies, has 3 voices, and was last updated by  fdski 9 years, 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Labeling filter values in grid #24976

    timtate
    Member

    I’m trying to filter a grid by certain values, but don’t want the user to see those values in the checkedlist. I want those values to have a label instead, but filtering based on the selected values.

    I tried setting up the column like this:

    {
    text: 'Priority',
    datafield: 'priCode',
    filtertype: 'checkedlist',
    filteritems: [
    { value: 1, label: "Critical" },
    { value: 10, label: "High" },
    { value: 20, label: "Medium" },
    { value: 30, label: "Low" },
    { value: 99, label: "OToG" },
    ],
    editable: false,
    pinned: true
    }

    But this results in a dropdown that has checkboxes with blank labels, and selecting one of the options does not filter based on the hidden value.

    If I use a simple array, like this:

    filteritems: ['1', '10', '20', '30', '99']

    I at least get correct filtering, but like I said I want to label them.

    Labeling filter values in grid #24989

    Dimitar
    Participant

    Hello timtate,

    Unfortunately, this functionality is not supported by jqxGrid.

    Best Regards,
    Dimitar

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

    Labeling filter values in grid #25034

    timtate
    Member

    Ah, well consider it a feature request then 😛

    Labeling filter values in grid #63968

    fdski
    Participant

    >Ah, well consider it a feature request then 😛

    +1

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

You must be logged in to reply to this topic.