Jqgrid 拖放在平板电脑中不起作用
Jqgrid Drag and Drop is not working in tablet
我想在 jqgrid 中重新排序我的行。我使用这个例子实现了这个功能
点击here,我已经在平板电脑上检查过该示例,它在以下浏览器如 IE、Safari、Chrome 浏览器中不工作,但在 FF 中工作。
我们对此有任何一般性修复吗?
我在多年前为 the answer 编写了您引用的演示。不能指望旧版本的 jQuery、jQuery UI 和 jqGrid 会永远有效。
如果只是将 jQuery、jQuery UI 替换为当前版本并使用 jqGrid 4.6,那么该演示将更好地工作,但它仍然无法在 Chrome。 jQuery UI 的众所周知的问题。插件 jQuery UI Touch Punch 正是为这种情况而写的。
您可以验证使用 jqGrid 4.6 的 the demo 在 Chrome 中已经完美运行,但在 IE 中不行。 jQuery UI 已经可以在平板电脑的 IE 中运行,但是 sortableRows
可以在 Chrome 和 Firefox 上运行,但是在 IE 中有问题。而且可以看到表单编辑对话框在平板电脑上无法移动(Firefox除外)。
The next demo uses free jqGrid. It's the fork of jqGrid which I develop after Tony have changed the licence agreement of jqGrid and started Guriddo jqGrid JS which is not more free. I implemented many new features in free jqGrid. I rewrote jqDnR module 在 jqGrid 中用于拖放已经用于第一个免费的 jqGrid 版本 4.8。免费的 jqGrid 4.9 即将发布。
因此我建议您只使用 jQuery UI Touch Punch 和免费的 jqGrid 来解决所描述的问题。
我想在 jqgrid 中重新排序我的行。我使用这个例子实现了这个功能
点击here,我已经在平板电脑上检查过该示例,它在以下浏览器如 IE、Safari、Chrome 浏览器中不工作,但在 FF 中工作。
我们对此有任何一般性修复吗?
我在多年前为 the answer 编写了您引用的演示。不能指望旧版本的 jQuery、jQuery UI 和 jqGrid 会永远有效。
如果只是将 jQuery、jQuery UI 替换为当前版本并使用 jqGrid 4.6,那么该演示将更好地工作,但它仍然无法在 Chrome。 jQuery UI 的众所周知的问题。插件 jQuery UI Touch Punch 正是为这种情况而写的。
您可以验证使用 jqGrid 4.6 的 the demo 在 Chrome 中已经完美运行,但在 IE 中不行。 jQuery UI 已经可以在平板电脑的 IE 中运行,但是 sortableRows
可以在 Chrome 和 Firefox 上运行,但是在 IE 中有问题。而且可以看到表单编辑对话框在平板电脑上无法移动(Firefox除外)。
The next demo uses free jqGrid. It's the fork of jqGrid which I develop after Tony have changed the licence agreement of jqGrid and started Guriddo jqGrid JS which is not more free. I implemented many new features in free jqGrid. I rewrote jqDnR module 在 jqGrid 中用于拖放已经用于第一个免费的 jqGrid 版本 4.8。免费的 jqGrid 4.9 即将发布。
因此我建议您只使用 jQuery UI Touch Punch 和免费的 jqGrid 来解决所描述的问题。