-
1. Re: controls-scrollable-datatable.js
ilya_shaikovsky Jul 14, 2009 6:15 AM (in response to svande)yes, you can add them as for usual script files. Which concrete problems you have?
-
2. Re: controls-scrollable-datatable.js
ilya_shaikovsky Jul 14, 2009 6:49 AM (in response to svande)seems just fireBug issue :)
Please explain actual problem more. We will try to investigate on our side. -
3. Re: controls-scrollable-datatable.js
svande Jul 14, 2009 7:04 AM (in response to svande)NB: I am extending ExtendedDataModel and only retrieving the necessary records. This because of the potential 17.000.000+ records.
first load:
http://img217.imageshack.us/img217/2923/firstload.jpg
first scroll:Start loading: index: 19, and startRow: 0, and count: 10
POST
_rows_input 45
:si 458,19,29,0,0
state_input:10,19,0
http://img88.imageshack.us/img88/6365/firstscroll.jpg
scroll back:Start loading: index: 1, and startRow: 0, and count: 10
POST
_rows_input 45
:si 4,1,11,0,19
state_input:10,1,0
http://img154.imageshack.us/img154/6130/scrollback.jpg -
4. Re: controls-scrollable-datatable.js
ilya_shaikovsky Jul 14, 2009 7:24 AM (in response to svande)do you able to provide simple sample for us with mock data in war?
-
5. Re: controls-scrollable-data-table.js
svande Jul 14, 2009 9:04 AM (in response to svande)I think I found the problem already:
In the function 'adjustDataPosition' in controls-scrollable-data-table.js on line 1050 there is an assumption.
Namely that the all the space for rows is used.
(The rich:scrollableDataTable height attribute)
This is not always the case. For example in my case when only necessary rows are collected. And not simply all rows.
On that line (controls-scrollable-data-table.js line 1050):var first = parseInt(pos / this.defaultRowHeight) - 1;
'pos' is the bottom position of the scrollbar.
The solution is to find an algorithm that takes into account the possibiliy of empty rows.
In my case a workaround is to make sure the space for the table is smaller than the rows actually filled.
A situation like this is maybe very rare.
Thx for your time. -
6. Re: controls-scrollable-datatable.js
ilya_shaikovsky Jul 14, 2009 9:37 AM (in response to svande)finally found.. this seems your case https://jira.jboss.org/jira/browse/RF-1883