English 中文(简体)
JqGrid:R.R.R.R.R.R.R.后恢复状态排气柱过滤器
原标题:JqGrid : Restore state inluding column filters after column rearange

在局势中,我需要在重新定位、重新排序、躲藏一栏之后,拯救国家。

所有工作都很顺利,但一栏过滤器(软管、文字现场、日期-过滤器)在移入过滤器的正确栏目(Collumnchooser)后仍未恢复。

借助以下的 Java本,我可以恢复我所需要的大多数(各栏的大小、次序和可见度),但恢复右栏中的过滤器的工作不多。 (数字在后面几栏。)

var listName = jQuery( #list ).jqGrid( getGridParam ,  customName );

var colModel = LoadColumnModel(listName);
var perm = jQuery.cookies.get(listName +  _list_perm );
var rowNumber = jQuery.cookies.get(listName +  _list_rowNumber );

if (colModel) {
    var grid = jQuery( #list );
    for (var i = 0; i < colModel.length; i++) {
        var column = colModel[i];
        if (column.hidden) {
            grid.jqGrid( hideCol , column.name);
        };
        ***//I hoped next line would do the trick, but it didn t :(***
        if (column.search && column.searchoptions) {
            grid.jqGrid( setColProp , column.name, { search: true, searchoptions:   column.searchoptions });
        };
    }
    grid.jqGrid( setGridParam , { colModel: colModel });
    loadGrid = false;
    if (rowNumber) {
        grid.jqGrid( setGridParam , { rowNum: rowNumber });
        jQuery( .ui-pg-selbox ).val(rowNumber);
    }
    grid.trigger( reloadGrid );
    if (perm) {
        grid.jqGrid("remapColumns", perm, true);
    }
}

任何人都有cl?

最佳回答

不应在电网中设置<代码>查询标准/代码>。 而不是你可以节省/恢复<代码>postDatajqGrid的参数。

我建议你看。 回答, 回答。 它表明如何实施电网状态的储蓄/恢复。 由于我在上解释的原因,我使用的是<代码>局域名<>而不是编码”。 页: 1

问题回答

暂无回答




相关问题
How to restore an IIS Metabase backup using C#

I ve found the Stack Overflow question describing how to backup the IIS Metabase in C# here, and I have been successful at getting that to work using the code referenced here. However, I am having ...

How to Restore Git Repository

My Git repository is on the server and I need to... restore the repository remove logs / history remove all files How could I do it? Thank you.

Using C# FormWindowState to restore up?

I d like to detect if my application is minimized under certain situations, and if it is, the window needs to be restored. I can do that easily as follows: if(this.WindowState == FormWindowState....

PostgreSQL, update existing rows with pg_restore

I need to sync two PostgreSQL databases (some tables from development db to production db) sometimes. So I came up with this script: [...] pg_dump -a -F tar -t table1 -t table2 -U user1 dbname1 | ...

PostgreSQL: database restore from dump - syntax error

I m trying to restore a PostgreSQL database by executing the SQL that pg_dump created, on an empty database. I m getting this error: ERROR: syntax error at or near "" LINE 5211: . lines 5210 ...

热门标签