Dojo DataGrid 控件的 onCellDblClick 事件的工作流程
来源:互联网 发布:网络工具软件有哪些 编辑:程序博客网 时间:2024/05/17 04:46
jsp 代码:
<!-- 数据列表 --><div id="dataGrid" data-dojo-type="dojox.grid.EnhancedGrid"data-dojo-props='structure : manuPlanEntry.layout ,autoHeight : false,escapeHTMLInData : false,canSort : commonFunc.canSort,onStartEdit:function(inCell, inRowIndex){dijit.byId("applyEditButton").set("disabled",false);},onApplyEdit:function(){dijit.byId("applyEditButton").set("disabled",true);},onCancelEdit:function(){dijit.byId("applyEditButton").set("disabled",true);},style : "width: 100%; height: auto;",plugins : {indirectSelection : {headerSelector : true,name : "Selection",width : "60px",styles : "text-align: center;"}}'></div>
dojo.addOnLoad(function() {dojo.connect(dijit.byId("dataGrid"),"onCellDblClick",manuPlanEntry.onCellDblClick);});
,onCellDblClick:function(evt){if(evt.target.cellIndex==3||evt.target.cellIndex==4){dojo.byId("itemSelect_handlerFunction").value = "manuPlanEntry.itemUpdateSelect_handler";dojo.byId("dataGridRowIndex").value=evt.rowIndex;itemSelect.show();//dijit.byId("addDlg").show();}if(evt.target.cellIndex==7){dojo.byId("deviceSelect_handlerFunction").value = "manuPlanEntry.deviceUpdateSelect_handler";dojo.byId("dataGridRowIndex").value=evt.rowIndex;deviceSelect.show();}}
,itemUpdateSelect_handler: function(items ){var index=dojo.byId("dataGridRowIndex").value;var item=dijit.byId("dataGrid").getItem(index);dijit.byId("dataGrid").get("store").setValue(item, "itemId", items[0].id);dijit.byId("dataGrid").get("store").setValue(item, "itemName", items[0].name);dijit.byId("dataGrid").get("store").setValue(item, "itemHelpCode", items[0].helpCode);dijit.byId("dataGrid").get("store").setValue(item, "unitId", items[0].measureUnitId);dijit.byId("dataGrid").get("store").setValue(item, "unitName", items[0].measureUnit);}
- Dojo DataGrid 控件的 onCellDblClick 事件的工作流程
- 事件机制的工作流程
- Dojo的TabContainer控件切换标签事件的编写方法
- dojo的事件机制
- flex中datagrid控件的itemclick事件
- Flex学习-事件机制的工作流程
- 动态操作Dojo下的DataGrid
- Dojo 的 textArea onChange 事件
- dojo的阻止事件冒泡
- 怎么触发DataGrid模板列中控件的事件
- 怎么触发DataGrid模板列中控件的事件?
- Flexd的dataGrid控件使用(事件调用外部函数)
- [Flex4]mx:DataGrid控件中itemRenderer的事件响应
- DataGrid 的ItemCreated事件
- DataGrid的ItemDataBound事件
- DataGrid的ItemDataBound事件
- DataGrid的ItemDataBound事件
- Dojo DataGrid 的rowCount值总是为0的解决方法
- Tomcat Catalina Home
- 探索Antlr(Antlr 3.0更新版)
- 实习
- NSAutoreleasePool是什么?
- 自定义Adapter与ListView
- Dojo DataGrid 控件的 onCellDblClick 事件的工作流程
- 在Linux/Fedora11下配置、编译和使用Kscope的心得体会
- Pull解析XML文件
- SetWinEventHook和SetWindowsHookEx的异同
- QString的中文初步
- jsp页面写java代码很卡问题
- windows 的鼠标事件(Event)
- C#对注册表编程的支持
- MySQL Proxy