【问题标题】:How to use Thickbox with jqGrid on a ASP.NET WebForms Page?如何在 ASP.NET WebForms 页面上使用带有 jqGrid 的Thickbox?
【发布时间】:2010-02-23 22:16:45
【问题描述】:

我有一个使用 jqGrid 组件的 asp.net webforms 页面。问题是thickbox 不能处理jqGrid (ajax) 中的链接。

我在Gupta's blog 上获得了这种平静的代码,但我不知道如何添加它,因为我正在为 ASP.NET 使用 jqGrid 组件。任何人都可以帮忙吗?谢谢。

gridComplete: function(){
// ThickBox - this allows any dynamically created links that use thickbox to work!
tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
imgLoader = new Image();// preload image
imgLoader.src = tb_pathToImage;}

【问题讨论】:

    标签: asp.net jqgrid thickbox webforms


    【解决方案1】:

    您可能需要考虑使用对thickbox 的显式调用。将其放在您的链接的 onclick 上。

    inline popup:
    tb_show('title','#TB_inline?height=155&width=300&inlineId=hiddenModalContent&modal=true');
    or iframed page:
    tb_show('title','myPage.aspx?TB_iframe=true&height=155&width=300&modal=true');
    

    查看thickbox网站上的文档以获取更多示例jquery thickbox

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多