jQWidgets Forums

jQuery UI Widgets Forums Grid How to filter cellsrenderer column?

This topic contains 4 replies, has 3 voices, and was last updated by  timo75 9 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • How to filter cellsrenderer column? #46930

    ian
    Participant

    Hi,

    I want to filter the display data not binding data.For eg:

    { text: 'Category', datafield: 'category',  cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) {
                    if (value == 0) {
                        return 'A';
                    }
                    else if(value == 1){
                        return 'B';
                    }
                }   
    }

    I would like to type ‘A’ or ‘B’ as filtervalue is not type 0 or 1 to filter.
    Is it possible?

    Thanks in advance.

    How to filter cellsrenderer column? #46934

    Peter Stoev
    Keymaster

    Hi ian,

    Filtering works with the cell value. The HTML displayed in the cell is not part of the Filter.

    Best Regards,
    Peter Stoev

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

    How to filter cellsrenderer column? #46951

    ian
    Participant

    thx.

    BTW I can’t find checkbox(selectionmode:’checkbox’) allselect & allunselect event.
    Is not supported yet?

    How to filter cellsrenderer column? #46967

    Peter Stoev
    Keymaster

    Hi ian,

    There is no such event and that’s the reason you cannot find it.

    Best Regards,
    Peter Stoev

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

    How to filter cellsrenderer column? #77856

    timo75
    Participant

    A use case for this would be: A JSON object that has a field which is true or false, but you might want to use a cellsrenderer to have “yes” or “no” displayed instead. A user would want to filter a column by choosing “show rows where: contains: yes”…which does not work.

    In this case you have to change the values (true-> “yes”…) server side. I would be hand to do that client side…

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

You must be logged in to reply to this topic.