1

I replaced the jqGrid I had with the latest one from GIT (4.9.0 beta something), and the toppager_right is now defaulted as "display: none;"

That basically makes what I had there not visible.

I had this $(nameOfGrid + '_toppager_right').append(indication); used for painting some specific html code (marked here as 'indication'), but now I can't get it due to last changes.

Is there a new way to use _toppager_right? or should I just change the element using Jquery (doing $(nameOfGrid + '_toppager_right').show() will solve this,just that I still think this is a backward compatibility issue that might need to be mentioned)?

Thanks,

4

1 回答 1

1

原因是 的新选项hideEmptyPagerPartsnavGrid它将true默认设置为。该选项允许在寻呼机中保存位置。寻呼机通常由以下部分组成:左、中和右。该选项hideEmptyPagerParts: true所做的只是检查零件并调用.hide()以在寻呼机中保存位置。

因此,您有以下选择:

  1. 您可以指定navOptions: { hideEmptyPagerParts: false }网格或添加到您使用hideEmptyPagerParts: false的选项列表中。navGrid
  2. 您可以在调用之前将一些信息放在正确的寻呼机中navGrid。例如,您可以使用$(nameOfGrid + "toppager_right").append("<span></span>");which add empty <span>。它将使正确的寻呼机不为空,并且不会被更多隐藏。
  3. 您可以$(nameOfGrid + '_toppager_right').show();在右侧寻呼机中设置自定义“指标”信息后添加。它将使寻呼机的部分可见。

以上方法中的任何一种都可以解决您的问题。

于 2015-06-06T20:08:07.123 回答