当前位置:  开发笔记 > 编程语言 > 正文

JQGRID: any easy way to implement undo on excel like jqGrid implementation

如何解决《JQGRID:anyeasywaytoimplementundoonexcellikejqGridimplementation》经验,为你挑选了0个好方法。

Edited on 5/14/12: i was finally able to jump out of my laziness and prepare this to share the actual EXCEL LIKE JQGRID implementation. The cell selection may work weird on jsfiddle on few browsers but it should work normal on your development box. Have fun!!!!

Edited on 9/13/11: This is my first use of JQGrid. I'm using ver 4.1.2. I spent few weeks to put together the excel like grid and the biggest challenge was to find the right information on how to use JQGrid. My current setup has lots of ajax updates and image galleries and use of jqgrid formatter but what I've put here is the main code to be able to use JQgrid with server side paging, excel like copy-paste and demonstration of few other features on jqgrid. This is just my way of giving back for all the help that I got from this community.

For people who just jumped to JQGrid, you will soon find out that there is some challenge to using Textarea in jqgrid. you can find some solutions here.

Original post:
Just to give little update before putting my question....

I've been able to come up with some additional features on the jqgrid that I'm using (after going through many forums) including: copy-paste back and forth from Excel to jqgrid, edit cell on keypress and dblclick, copy and paste multiple cells from one block to another on the same grid using mouse selection (from here Using Javascript to 'sum selected cells' in IE6)

Most of the copy paste features works on IE only as of now. I save all the changes together on "Save" button click so all the updates on the cells are on screen only until user hits the "Save" button.

虽然现在情况仍然不稳定,但我现在想要实现设计,而不是以后.我正在寻找一种简单的方法来进行最后的改变.我一直在考虑使用jQuery的"data()"和"removeData()"方法来实现这个,但是如果jqgrid框架中已经存在任何有用的东西,我想知道.有什么建议??



提前谢谢了!

推荐阅读
k78283381
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有