【发布时间】:2014-01-27 09:18:32
【问题描述】:
我有一个网格。在网格列中添加了下拉按钮并单击按钮打开工具提示对话框但工具提示对话框打开几秒钟后消失。
我想点击它显示的按钮和取消按钮隐藏。如果有任何想法,请提出建议。 我关注enter link description here
1.dialog.jsp
<table id="eventDialogInstructorTextBox" dojotype="dojox.grid.EnhancedGrid" data-dojo- props="selectionMode:'none'" style="height: 50px;width:100%;align:top;background:white;margin-left:2%">
<thead>
<tr>
<th field="id" width="85%" hidden="true">instKey</th>
<th field="name" width="90%">instData</th>
<th field=" " formatter="commentImg" width="10%"></th>
</tr>
</thead>
</table>
2.dialog.js
function commentImg(){
var dialog = new dijit.TooltipDialog({
content:
'<label for="name">Name:</label> <input data-dojo-type="dijit.form.TextBox" id="name" name="name"><br>' +
'<label for="hobby">Hobby:</label> <input data-dojo-type="dijit.form.TextBox" id="hobby" name="hobby"><br>' +
'<button data-dojo-type="dijit.form.Button" type="submit">Save</button>'
});
var button = new dijit.form.DropDownButton({
label: "",
dropDown: dialog,
// iconClass: commentButtonIcon
});
return button;
}
【问题讨论】:
-
No answer!!!把这一行更清楚地说明“我想要点击按钮时显示和取消按钮隐藏。”
-
您想运行相同的示例对吗?清楚地告诉我你想要什么?您的代码不显示任何对话框。
标签: javascript dojo dojox.grid.datagrid