[置顶] Ext.Net 1.x_Ext.Net.GridPanel 删除行提示

            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:

                <ext:CommandColumn  Header="用户操作" Width="200" >
                    <Commands>
                        <ext:GridCommand Icon="Accept" CommandName="Select"  Text="选课"/>
                        <ext:GridCommand Icon="Group" CommandName="Users"  Text="已选人员"/>
                        <ext:GridCommand Icon="UserGo" CommandName="All"  Text="必修"/>
                    </Commands>
                    <PrepareToolbar Fn="prepare" />
                </ext:CommandColumn>


[置顶] Ext.Net 1.x_Ext.Net.GridPanel 删除行提示_第1张图片

你可能感兴趣的:(html,function,command,ext,header)