jqGrid: fixed row

前端 未结 1 1414
忘掉有多难
忘掉有多难 2020-12-20 09:46

Is it possible to set a row on a fixed position? For example, we have now a total row, and we always want the total on top, after sorting etc.

Is there a plugin for

相关标签:
1条回答
  • 2020-12-20 10:34

    The footer are placed in the div with the class "ui-jqgrid-sdiv" and it is placed typically below the div with the class "ui-jqgrid-bdiv" where the main grid contain are placed. So to move the footer on top of page you need to move the the footer div. Additionally you should place bottom border in the style which you need. The code could be like the following:

    $('div.ui-jqgrid-sdiv').css({
        "border-bottom-style":"solid",
        "border-bottom-color":"#a6c9e2",
        "border-bottom-width":"2px"
    }).insertBefore($('div.ui-jqgrid-bdiv'));
    

    as the result you will receive enter image description here

    See the demo live here.

    0 讨论(0)
提交回复
热议问题