削除のためのJqueryモーダルダイアログでJQGridを作成しました。私はそれを空白のままにして、それがポップアップメッセージを送信する場合はインライン編集と1つのフィールドを持つJqgridが必要です。名前は入力してください。問題はInbuiltポップアップメッセージとjqueryモーダルダイアログがあまりにも異なって見えます。
JQueryモーダルダイアログとJQGridモーダルダイアログが異なるのはなぜですか?
作り付けJQGridモーダルダイアログ:
jQueryのモーダルダイアログ
CODE:
function createGrid() {
jQuery("#list").jqGrid({
url: '@Url.Action("JQGridGetGridData", "TabMaster")',
datatype: 'json',
mtype: 'GET',
colNames: ['col ID', 'First Name', 'Last Name', ''],
colModel: [{ name: 'colID', index: 'colID', width: 100, align: 'left', searchoptions: { sopt: ['eq', 'ne', 'cn']} },
{ name: 'FirstName', index: 'FirstName', width: 150, align: 'left', editable: true, editrules: { required: true} },
{ name: 'LastName', index: 'LastName', width: 150, align: 'left', editable: true, editrules: { required: true} },
{ name: 'act', index: 'act', width: 60, sortable: false}],
pager: jQuery('#pager'),
hidegrid: false,
rowNum: 100,
rowList: [10, 50, 100, 150],
sortname: 'colID',
sortorder: "asc",
viewrecords: true,
multiselect: false,
width: 500,
height: "250px",
imgpath: '@Url.Content("~/Scripts/themes/steel/images")',
caption: 'Tab Master Information',
editurl: '@Url.Action("JQGridEdit", "TabMaster")',
gridComplete: function() {
var ids = jQuery("#list").getDataIDs();
for (var i = 0; i < ids.length; i++) {
var id = ids[i];
be = "<a href='#'><div title='Edit' id='action_edit_" + id + "' class='actionEdit' onclick='inlineEdit(" + id + ");'></div></a>";
de = "<a href='#'><div title='Delete' id='action_delete_" + id + "' class='actionDelete' onclick='inlineDelete(" + id + ");'></div></a>";
se = "<a href='#'><div title='Save' style='display:none' id='action_save_" + id + "' class='actionSave' onclick='inlineSave(" + id + ");'></div></a>";
ce = "<a href='#'><div title='Cancel' style='display:none' id='action_cancel_" + id + "' class='actionCancel' onclick='inlineCancel(" + id + ");'></div></a>";
jQuery("#list").setRowData(ids[i], { act: be + de + se + ce })
}
}
}).navGrid('#pager', { edit: false, add: false, del: false, search: false, refresh: false });
}
JQGridの組み込みダイアログのスキンにJqueryモーダルダイアログを適用するにはどうすればよいですか?
おかげで、 Imdadhusen
[あなたの前の質問](http://stackoverflow.com/q/6646347/315935)について教えてください。私の答えを読んでいますか? – Oleg
あなたの質問が面白かったので、私の+1と[私の答え](http://stackoverflow.com/questions/6693694/why-jquery-modal-dialog-and-jqgrid-modal-dialog-are-looking-異なる/ 6699428#6699428)。 – Oleg
私はfirebugを使って$( "#load_list")をチェックしましたが、私のjqgridレンダリングがあなたと違っていると仮定して、私のjqgridの要素が見つからなかったとしてもpager_left、pager_center、pager_rightの要素はありません。 – imdadhusen