【问题标题】:How to change width of Tooltip in Infragistics ig grid如何在 Infragistics ig 网格中更改工具提示的宽度
【发布时间】:2018-12-20 11:06:34
【问题描述】:

在 Infragistics ig 网格的offical docs 上,没有提到改变宽度。

我试过了:

tooltipShowing: function (evt, args) {
  $('#myGrid_tooltips').width(500); // no luck
  $('#myGrid_tooltips').addClass('width-500') // still no luck
}

【问题讨论】:

    标签: infragistics ignite-ui iggrid


    【解决方案1】:

    您应该设置 ID 为 grid_tooltips 的元素的宽度。还有一件事,所有工具提示的最大宽度都设置为等于列的宽度。如果您需要显示比您需要清除最大宽度的列更宽的工具提示。您可以在 tooltipShown 事件中执行此操作,因为 tooltipShowing 为时过早。这段代码在我身边运行良好:

    tooltipShown: function (evt, args) {
        $('#grid_tooltips').css("max-width", "none");
        $('#grid_tooltips').width(550);
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-17
      • 1970-01-01
      • 2020-05-10
      相关资源
      最近更新 更多