jQWidgets Forums

jQuery UI Widgets Forums Grid Autoload/AutoSave

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 9 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Autoload/AutoSave #81088

    Venki7092
    Participant

    Hi team
    I have enabled the grid with autosavestate: true, autoloadstate: true, and i have custom filerting logic cellsrenderer: function(row, cell, value) {
    var tempValue = this.owner.source.records[row][‘CAD’];
    if (tempValue === null) {
    tempValue = ”;
    }
    if (value === “I” && tempValue != ”) {
    return ‘<div style=”background:#FFD1D1 ; overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: center; margin-right: 2px; margin-left: 4px; margin-top: 5%;”>’ + tempValue + ‘</div>’
    } else if (value === “S” && tempValue != ”) {
    return ‘<div style=”background:#84D5EC ; overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: center; margin-right: 2px; margin-left: 4px; margin-top: 5%;”>’ + tempValue + ‘</div>’
    } else if (value === “C” && tempValue != ”) {
    return ‘<div style=”background:#A9D10E ; overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; text-align: center; margin-right: 2px; margin-left: 4px; margin-top: 5%;”>’ + tempValue + ‘</div>’
    } else {
    return ‘<div style=”text-align: center;margin-top: 5%;”>’ + tempValue + ‘</div>’
    }
    },
    createfilterwidget: function(column, columnElement, widget) {
    widget.jqxDropDownList({
    source: [‘C’, ‘I’, ‘S’],
    renderer: function(index, label, value) {
    switch (label) {
    case ‘(Select All)’:
    return ‘(Select All)’;
    break;
    case ‘C’:
    return ‘Complete’;
    break;
    case ‘I’:
    return ‘Incomplete’;
    break;
    case ‘S’:
    return ‘Skipped’;
    break;
    }
    }
    });
    }

    and sort logic but i refresh the grid sorting and filerting is not working

    Autoload/AutoSave #81176

    Hristo
    Participant

    Hello Venki7092,

    We recommend those demos below if you need to create some specific custom filter menu:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/filtering-menu-column-types.htm?arctic
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/filtering-menu-custom-widgets.htm?arctic
    In example below looks work correctly.
    Please take a look this example: http://jsfiddle.net/txhi/vggr4zom/
    If you still have same issue please provide us whole code (in https://www.jseditor.io/ or https://jsfiddle.net/) for better analyze.

    Best Regards,
    Hristo Hristov

    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.