在Ext Js Grid中移动项目 [英] Move items in Ext Js Grid

查看:180
本文介绍了在Ext Js Grid中移动项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这个示例Ext Js网格中:
http://dev.sencha.com/deploy/ext-4.0.2a/examples/dd/dnd_grid_to_grid.html



您可以拖放项目从一个网格到另一个网格,但不能更改第二个网格中的项目顺序。



您可以来回放置项目并按照您的方式排序希望,但这不是一个很好的方法。



代码中需要更改什么以便人们可以在第二个网格上上下移动项目)

是否有可能?

解决方案

全部你需要做的是让dragGroup和dropGroup具有相同的值


In this sample Ext Js grid: http://dev.sencha.com/deploy/ext-4.0.2a/examples/dd/dnd_grid_to_grid.html

You can drag and drop items from one grid to another, but you can't change the order of items in the second grid.

You can drop items back and forth and order them the way you wish, but that's not an elegant way of doing it.

What needs to change in the code so that one can move items up and down on the second grid (the one on right) ?

Is it even possible?

解决方案

All you need to do is to make dragGroup and dropGroup have identical values

这篇关于在Ext Js Grid中移动项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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