当在CellEdit之前捕获事件时,是否有可能以某种方式阻止单元格进入编辑模式?
beforeEditCell: function (rowid, cellname, value, irow, icol) {
if (cellname != 'aSpecificCol')
return;
var grid = $("#grid");
if (aCondition == "something")
grid.setColProp('aSpecificCol', { editable: false });
else
grid.setColProp('aSpecificCol', { editable: true });
}
Run Code Online (Sandbox Code Playgroud)
触发事件,但列属性的设置似乎不会更改编辑模式.
我正试图从我的控制器返回一个json字符串,这是jqGrid列的prefill值.
$("#dagbok_grid").setColProp("Kalla", { editoptions: { value:
$.getJSON('@Url.Action("GetKalla", "Dagbok")', { }, function (data) {
alert("sdf");
//What to do here, to get the json string here?
});
} });
Run Code Online (Sandbox Code Playgroud)
我有两个问题,我怀疑它们是连接的.我在上面的javascript中遇到语法错误.另外,如何输出从控制器操作返回的数据?
我在cellEdit模式下有一个jgGrid.我需要获取当前rowid,以进行进一步处理(根据其他值将单元格设置为只读).我找不到一个方法,我尝试过的事件不会触发.
网格定义:
var curRowId = -1;
$("#grid").jqGrid({
datatype: 'json',
mtype: 'GET',
colNames: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's',],
colModel: [
{ name: 'a', index: 'a', width: 30, formatter: 'checkbox', edittype: 'checkbox', editable: true },
{ name: 'b', index: 'b', width: 30, formatter: 'checkbox', edittype: 'checkbox', editable: true },
{ name: 'c', index: 'c', width: 70, formatter: 'date', editable: true, editrules: { required: true }, editoptions: { dataInit: …Run Code Online (Sandbox Code Playgroud) 我已将ContextMenuItem添加到ContextMenu for Outlook约会.

问题是我无法弄清楚如何获得Appointment对象.如果我得到一个IRibbonControl,它的Context属性应该包含Appointment,但它包含一个Selection.据我所见,我无法使用选择来预约.

这个页面是我来自的地方:https://msdn.microsoft.com/en-us/library/office/ff863278%28v=office.14%29.aspx
谁知道如何获得预约?
javascript ×2
jqgrid ×2
jquery ×2
.net ×1
asp.net-mvc ×1
c# ×1
json ×1
ms-office ×1
outlook ×1