View Full Version : Bugs in sort and resize Column with JSONDataModel
22 Jan 2007, 10:33 PM
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
Please post sample code or a link. Sorting with JSON data in a grid works.
28 Jan 2007, 7:28 PM
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
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
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.