【jqGrid学习】jqGrid 添加 tablednd

<script src="../../res/js/plugin/jquery.tablednd.js" type="text/javascript"></script>


jQuery("#west-grid").tableDnD({
                    scrollAmount:0
                   ,onDrop: function(table, row){//onDrop方法
                       alert(table.id)
                   }
                });
jQuery("#west-grid").jqGrid({
………………………………
,gridComplete: function() {
                        $("#_empty","#west-grid").addClass("nodrag nodrop");
                        jQuery("#west-grid").tableDnDUpdate();
                    }
)}



详细参考这往篇文章:
http://www.trirand.com/blog/?page_id=393/help/jqgrid-tablednd-selected-class-for-row-editing-removed-on-mouseclick/

你可能感兴趣的:(java,jquery,Blog)