var gridCommand = function (command, record) { if (command == "Users") { var id = record.data.Id; //设置编辑窗的值 Ext.net.DirectMethods.SelectedUsers(id); } if (command == "Select") { Ext.Msg.confirm('提示', '您确定要选该培训课程?', function (btn) { if (btn == 'yes') { Ext.net.DirectMethods.SelectCourse(record.data.Id); } }); } };
HTML:
![](http://hi.csdn.net/attachment/201109/20/0_13164814301Txj.gif)