-
9 Mar 2012 12:03 PM #11
-
10 Mar 2012 12:30 AM #12
Are you using non-standard row heights?
To calculate correct positioning, by default, it measures the height of the first rendered row, and then assumes they are all the same.
That's how it creates a "stretcher" el which causes the correctly proportioned scrollbar. And that is how, after rendering a small table, it calculates what the correct top position of the table is within that scrollable range.
If there are non-standard row heights, then more complex processing has to be used, so you have to tell it to do so using the following in your grid config:
Code:verticalScroller: { variableRowHeight: true },Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
10 Mar 2012 2:27 AM #13
Don Griffin
Ext JS Development Team Lead
Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue
"Use the source, Luke!"
-
10 Mar 2012 9:49 AM #14
non standard row heights
non standard row heights
Hey Animal, Yes they are non-standard. So when I add in that config of variableRowHeight:true, I am getting an error in "beforeViewRefresh"
me.scrollOffset = -view.el.getOffsetsTo(rows[me.commonRecordIndex])[1];
the variables are as follows in stack at this point....
me.commonRecordIndex=undefined
rows=[]
So when it calls getOffsetsTo, The error is Cannot call method 'getXY' of null
Also, I got the following from a post on here, and when it is applied, when you resize a column, the view doesn't change at all. Does anything in it stick out to you? We have filters in the column headers, and we are trying to set the height at 72
Code:columns:{ border : true, height : 72, layout : { type : 'gridcolumn', availableSpaceOffset : 0, align : 'stretch', resetStretch : true }, items : [ { column1}, {column2}..etc ] }
-
10 Mar 2012 9:21 PM #15
Header Not behaving When you have scrolled horizontally
Header Not behaving When you have scrolled horizontally
Hello,
When you have scrolled horizontally in the grid, the headers dont always reset themselves to the correct position. For example, if i scroll halfway across, when i scroll down and the VIEW refreshes, the headers are off by the amount that I have scrolled horizontally.
I narrowed it down, I think, to a call of headerCt.updateLayout(). This looks to reset the header to its original position. I had to override the refresh method of Ext.view.Table. This makes it so that the header doesnt look like it is bouncing from side to side everytime the grid refreshes, it now stays where it should. I noticed that the scrollLeft also gets put back to 0.
Anyone else notice this? Anyone else code at 12:21am on a Saturday? ha
Code:Ext.override(Ext.view.Table,{ refresh: function() { this.setNewTemplate(); this.callParent(arguments); this.doStripeRows(0); this.ownerCt.syncHorizontalScroll(this.getEl().dom.scrollLeft); } });
-
11 Mar 2012 12:27 PM #16
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
11 Mar 2012 12:32 PM #17Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
12 Mar 2012 2:59 AM #18
I'm adding filtering ability to the example. Few glitches found - fixing them now...
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
13 Mar 2012 8:41 AM #19
I am in windows 7, chrome 17. If you are going to use the infinite grid example or tuner, I just increased the width of the first column, then scroll horizontally.
After scrolling horizontally, start scrolling vertically and you will see the headers resetting themselves, most of the time they "bounce" back to the original position, but you can stop at a point, and the headers are not lined up with the view. attached a pic
headers_misaligned.jpg
-
13 Mar 2012 8:55 AM #20
clearing out store before a new search
clearing out store before a new search
Animal, one other question.
When you are using a store with the MVC architecture, i dont think that calling destroy on it is a good idea. I am not sure if it will mess up the references in the controller.
I am using it with the infinite grid, the user can sort, filter, etc. How would you recommend "Resetting" the store to its original state before calling loadPage() on it again?
I used to have to do this.
Code:store.filters.clear(); if(store.prefetchData){ store.prefetchData.clear(); } store.data.clear(); delete store.guaranteedStart; delete store.guaranteedEnd; delete store.totalCount;


Reply With Quote
Yes, there's a recently introduced bug with variableRowHeight. I have a fix submitted which will be in the final 4.1