将gridview中的行从一个网格拖放到另一个网格 [英] Drag and Drop rows in gridview from one grid to another grid

查看:87
本文介绍了将gridview中的行从一个网格拖放到另一个网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个gridview我希望从一个gridview拖放行到另一个griedview

在客户端。



请尽快解决我的问题



谢谢

hi ,
I have two gridview i want drag and drop rows from one gridview to another griedview
in client side.

Please solve my proble asap

Thanks

推荐答案

IN Sample.aspx

=================

IN Sample.aspx
=================
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.js" type="text/javascript"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.22/jquery-ui.js"></script>
    <link rel="Stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/redmond/jquery-ui.css" />
    <script type="text/javascript">


(function(){
(function () {


(。drag_drop_grid)。sortable({
items:'tr:not(tr:first-child)',
cursor:'crosshair',
connectWith:'。drag_drop_grid',
axis:'y',
dropOnEmpty:true,
receive:function(e,ui){
(".drag_drop_grid").sortable({ items: 'tr:not(tr:first-child)', cursor: 'crosshair', connectWith: '.drag_drop_grid', axis: 'y', dropOnEmpty: true, receive: function (e, ui) {


这篇关于将gridview中的行从一个网格拖放到另一个网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆