22 Jan 2007 10:33 PM #1
Bugs in sort and resize Column with JSONDataModel
first, I use JSONDataModel to display Json data in a grid, I found no matter I use defaultSortable or "sortType" that columns can't sort.
second, I rewrite the PagedGridView.js to display Hibernate's seperated page, when I resize one page's grid column, It's ok, but when I click to next page, and resize again, the column can't resize good, Is it a bug?
23 Jan 2007 7:39 AM #2
28 Jan 2007 7:28 PM #3
Oh, I finally find out the question:
cause the column resize question?
the reason is every time I load JSONDataModel, I use new JSONDataModel() and new Grid().
cause the sort quest?
the reason is I use loadPage(), and change the code of PagedGridView.js, use my own splite page code，so the sort can't work.
Sorry to sumit a bug here, it has no bug, thx...
14 Feb 2007 6:11 PM #4
Can grid be render() two times? or something wrong with my code?
I use code under:
In some time I need to render() the grid two times to refresh the grid, and then the bugs appear, the column can't resize good.
14 Feb 2007 6:44 PM #5
You can't call render twice - you'll end up with duplicate dom entries and the event wiring is probably getting hosed. Loading the datamodel causes the rows to be repainted. If that's not happening you need to debug thru the load process and see why your data is not being loaded.
By yevgen in forum Ext 1.x: BugsReplies: 3Last Post: 2 Apr 2009, 2:32 AM
By donalconlon in forum Ext 1.x: Help & DiscussionReplies: 7Last Post: 11 Dec 2006, 1:32 PM
By lsmith in forum Ext 1.x: Help & DiscussionReplies: 8Last Post: 22 Nov 2006, 9:13 AM
By SteveEisner in forum Ext 1.x: BugsReplies: 1Last Post: 1 Nov 2006, 9:30 PM
By mrim in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 31 Oct 2006, 8:28 PM