在mvc中分页时show popup的问题 [英] Issues with show popup when paging in mvc

查看:85
本文介绍了在mvc中分页时show popup的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用包含分页的jquery的表。我在实现分页时遇到了问题,我单击按钮编辑(在其行中的表格内) - 但是弹出窗口没有显示。请给我一些解决方案的建议...

I have table with using jquery that contains paging. I met the problem when implement the paging, I click the button Edit (inside table on its row) - but the popup doesn''t not show. Please give me some advice for solution...

// jquery that contain paging
$(document).ready(function () {
    $(#myDataTable).dataTable({
        bJQueryUI: true,
        sPaginationType: full_numbers;
    }).makeEditable();
});
  
// show popup edit
var dialog;

$(document).ready(function () {
    dialog = $(#popupWindow1).dialog({
        title: Create Building,
        width: 350,
        height: 400,
        resizable: false,
        modal: true,
        autoOpen: false
    });
    $(.CreateLink).click(function () {
        $(#popupWindow1).empty();
        var url = $(this).attr(href);
        $(#popupWindow1).load(url, function () {
            $(#inputCloseModal).click(function () {
                dialog.dialog(close);
                return false;
            });
         });
        dialog.dialog(open);
        return false;
    });
});

推荐答案

document )。ready ( function (){
(document).ready(function () {


(#myDataTable).dataTable({
bJQueryUI: true
sPaginationType:full_numbers;
})。makeEditable();
});

// show popup edit
var 对话框;
(#myDataTable).dataTable({ bJQueryUI: true, sPaginationType: full_numbers; }).makeEditable(); }); // show popup edit var dialog;


document )。ready(功能(){
dialog =
(document).ready(function () { dialog =


这篇关于在mvc中分页时show popup的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆