Hi,
We have a question about the scroll bar behavior in ListGrid body.
1. For horizonal scroll bar, if it is in the middle of the listgrid, after re-fetching the data, should it scroll to the left most position of the listgrid? If not, is there any property we can use to achieve this behavior?
2. For vertical scroll bar, if it is in the middle of the listgrid, when "wrapCells"is true and "fixedRecordHeights" is false, after re-fetching the data, it remains in the previous position. However, if these two properties are not set, after re-feteching the data, the scroll bar scrolls to the top of the listgrid. Why does the vertical scroll bar behave differently in these two cases? Is there any way we can do to make the scroll bar always scroll to the top after re-fetching?
This behavior can be reproduced on IE9 and FF 34 with SmartClient Version v8.3p_2014-10-18/PowerEdition.
Please try the following standalone using the "worldDS" datasource in feature explorer.
Steps to reproduce:
1. Click "Fetch All" button.
2. Scroll both horizontal and vertical scroll bar to the middle of the list grid.
3. Click "Invalidate Cache" button, both scroll bars stay in previous positions. (If comment out the "wrapCells" and "fixedRecordHeights" properties, the vertical scroll bar will scroll to the top.)
Thanks!
We have a question about the scroll bar behavior in ListGrid body.
1. For horizonal scroll bar, if it is in the middle of the listgrid, after re-fetching the data, should it scroll to the left most position of the listgrid? If not, is there any property we can use to achieve this behavior?
2. For vertical scroll bar, if it is in the middle of the listgrid, when "wrapCells"is true and "fixedRecordHeights" is false, after re-fetching the data, it remains in the previous position. However, if these two properties are not set, after re-feteching the data, the scroll bar scrolls to the top of the listgrid. Why does the vertical scroll bar behave differently in these two cases? Is there any way we can do to make the scroll bar always scroll to the top after re-fetching?
This behavior can be reproduced on IE9 and FF 34 with SmartClient Version v8.3p_2014-10-18/PowerEdition.
Please try the following standalone using the "worldDS" datasource in feature explorer.
Steps to reproduce:
1. Click "Fetch All" button.
2. Scroll both horizontal and vertical scroll bar to the middle of the list grid.
3. Click "Invalidate Cache" button, both scroll bars stay in previous positions. (If comment out the "wrapCells" and "fixedRecordHeights" properties, the vertical scroll bar will scroll to the top.)
Code:
isc.ListGrid.create({
ID: "countryList",
width:300, height:224,
dataSource: worldDS,
fields:[
{name:"countryCode",width:"100"},
{name:"countryName",width:"100"},
{name:"capital", width:"100"},
{name:"continent", width:"100"}],
wrapCells: true,
fixedRecordHeights: false,
autoFetchData:false
})
isc.IButton.create({top:240, width:160,
title:"Fetch All",
click:"countryList.fetchData()"})
isc.IButton.create({ left:170, top:240, width:160,
title:"Invalidate Cache", click:function() {countryList.invalidateCache();}})