Ext.Net 1.x_Ext.Net.GridPanel之右键菜单

    <%--右键菜单--%>
    <ext:Menu ID="Menu1" runat="server">
        <Items>
            <ext:MenuItem ID="MenuDel" runat="server"  Icon="Delete" Text="删除用户">
                <Listeners>
                    <Click Fn="deleteuser" />
                </Listeners>
            </ext:MenuItem>
            <ext:MenuItem ID="MenuEdit" runat="server" Icon="PackageGo" Text="修改用户">
                <Listeners>      
                </Listeners>
            </ext:MenuItem>
        </Items>
    </ext:Menu>
        <script type="text/javascript">
            function deleteuser() {
                var record = ItemGrid.getSelectionModel().getSelected();
                alert("删除物料:"+record.data.MB001.toString());
                //Ext.net.DirectMethods.Deletestudent(record.data.stuid.toString());
            }
        </script>
   <ext:GridPanel ID="ItemGrid" runat="server" StoreID="ItemStore"       ContextMenuID="Menu1">
        <SelectionModel>
            <ext:RowSelectionModel runat="server" ID="r1">
            </ext:RowSelectionModel>
        </SelectionModel>
Ext.Net 1.x_Ext.Net.GridPanel之右键菜单_第1张图片

你可能感兴趣的:(function,server,ext,delete,menu)