PDA

View Full Version : Can NOT scroll down to bottom while grouping rows



bright.wang
6 Jun 2012, 7:12 PM
We are using a gridpanel with "Infinite Scrolling" combined with the grouping feature of the gridpanel. If we don't use grouping, everything works fine. We can scroll to the bottom of the grid. But when we use grouping, we are not able to scroll to the bottom because Extjs doesn't take the group-headers into account. When calculating the height of the grid via 'totalProperty' variable, it ignores the height of the group-headers. So for example when we have 10 groups and each group header has a height of 20px, then Extjs stops scrolling down 200px too early. Also when I collapse the group, Extjs doesn't recalculate the scrolling bar. Is this a bug or do we forgett to setup something?


Here is our code:


var groupingFeature = Ext.create('Ext.grid.feature.Grouping',{
groupHeaderTpl: 'Char: {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})',
hideGroupedHeader: true
});


var contactListStore = Ext.create('Ext.data.Store', {
id: 'tmContactStore',
pageSize: 30,
model: 'ContactShortInfo',
remoteSort: true,
// allow the grid to interact with the paging scroller by buffering
buffered: true,
groupField: 'group_char',
proxy: {
// load using script tags for cross domain, if the data in on the same domain as
// this page, an HttpProxy would be better
type: 'ajax',
url: '/ajax.php?module=contact&page=getJsonContactList',
reader: {
root: 'contacts',
totalProperty: 'totalCount'
},
simpleSortMode: true
}
});


panel.add([
{
xtype: 'panel',
layout: {
type: 'border'
},
id:"contact_ifr_list",
iconCls: 'ico_settings_listView',
title: 'Liste',
items: [{
id: 'panel_contact_list',
xtype:"gridpanel",
region: 'center',
store: contactListStore,
verticalScrollerType: 'paginggridscroller',
loadMask: false,
features: groupingFeature,
flex:1,
// grid columns
columns:[...]
}]
}

]);

mitchellsimoens
11 Jun 2012, 6:51 AM
What Ext JS 4 version are you using?

bright.wang
11 Jun 2012, 8:07 AM
4.1.1, Before this version, it also does.
Thanks for your reply.

naggy
3 Jul 2012, 4:56 AM
Hi,

Any update on this one?

Regards,
Markus

kwhitmore335
6 Sep 2012, 12:09 PM
I'm experiencing the same issue. Was there ever a fix or work-around for this?

Keith