Share

YUI Library

Tracker: Bugs

9 [#2417298] DT not refreshed by dataTable.initializeTable() - ID: 2418519
Last Update: Comment added ( vgavrilov )

Hello,

I need to refresh all DataTable cell values after editing is complete (when
a cell editor exit), not reloading the whole page (user may be in the
middle of scrolling). Data is stored in local JSArray and been reloaded by
async call.
In the attached self-sufficient test - I've simulated the situation (using
2 local arrays and substituting of the 1st one by the second - in
editorSaveEvent handler).

If you will click on a cell, enter a new value and after the editor will be
closed - you will see no difference in table's columns 1 and 2, while
editorSaveEvent handler actually resets the data and I'm expecting to see
1,1,1,1,1 - in the first columns immediately.

The table will be refreshed/repainted - only when you will click on a
different Tab (which is actually rebuilding the table based on the new
data).
I've tried different ways of notifying of DataTable about the change
(commented-out rebuilding of DataSource, flushing cache which is still
uncommented and other ways) but didn't succeed :(

Is it a bug?




Vasili Gavrilov ( vgavrilov ) - 2008-12-11 22:06

9

Closed

Works For Me

george puckett

DataTable

2.6.0

Public


Comments ( 14 )

Date: 2009-01-29 14:12
Sender: vgavrilovAccepting Donations

Thanks for the info


Date: 2009-01-28 22:13
Sender: gpuckettProject Admin

Hello Vasili,

The bug you are looking for is at

http://yuilibrary.com/projects/yui2/ticket/2418519

With respect to the migration, we are not able to create accounts for all
source forge users on the new system, it is up to the individual user to
create their account on the new site.

The easiest way to find an issue is to navigate to the tab corresponding
to the project under which the issue was filed - for this bug, that would
be YUI 2.x. You can then add the source forge ID of the bug in the text
field adjacent to the "Search Project" button. In this case 2418519. Then
press Search Project. The result will contain the link to the bug in the
YUILibrary Database. When you navigate to that link, you will find that
the full source forge history of the issue has been migrated to
YUILibrary.com. Please let me know if you need any further assistance in
finding your tracker items on YUILibrary.com.






Date: 2009-01-28 15:45
Sender: vgavrilovAccepting Donations

how to find this ticket in yuilibrary.com?


Date: 2009-01-28 15:44
Sender: vgavrilovAccepting Donations

I cannot find the ticket on http://yuilibrary.com for some reason!
It is very hard to use that tracker (and usernames seems not been
migrated, the history is not preserved).





Date: 2009-01-24 07:13
Sender: gpuckettProject Admin

The YUI project has been migrated from Source Forge to YUILibrary.com.
This ticket has been moved to the tracker on YUILibrary.com that
corresponds to the project it was filed against (YUI2, YUI3, Compressor,
etc.). All tickets not yet closed on Source Forge have been transferred
with their current state intact. The Source Forge instance of all tickets
is being marked as closed to avoid confusion. You can track the
status/progress of this ticket at http://yuilibrary.com/ using the same
ticket ID as it held in Source Forge.


Date: 2009-01-24 07:08
Sender: gpuckettProject Admin

The YUI project has been migrated from Source Forge to YUILibrary.com.
This ticket has been moved to the tracker on YUILibrary.com that
corresponds to the project it was filed against (YUI2, YUI3, Compressor,
etc.). All tickets not yet closed on Source Forge have been transferred
with their current state intact. The Source Forge instance of all tickets
is being marked as closed to avoid confusion. You can track the
status/progress of this ticket at http://yuilibrary.com/ using the same
ticket ID as it held in Source Forge.


Date: 2009-01-12 20:26
Sender: vgavrilovAccepting Donations

Thank you for the solution for JSON type of request!

However our current case/page is more dynamic - where exactly the same
solution does not work :(
I just attached 2 test cases: refresh_test1.html (your working solution
for the previous usage) and
our case (refresh_test2.html).
The difference seems to be only in the usage of DataSource, in it's type
(JSARRAY).

How to make our usage (refresh_test2.html) working?

Thanks and Regards
vasili


Date: 2009-01-12 20:08
Sender: vgavrilovAccepting Donations

File Added: refresh_test2.html


Date: 2009-01-12 20:07
Sender: vgavrilovAccepting Donations

File Added: refresh_test1.html


Date: 2009-01-09 23:32
Sender: gpuckettProject Admin


this issue has been reviewed by the component owner who has provided the
following feedback:

In the sample code:

Instead of...

testData=testData2

...do this

dataSource.liveData = testData2;

and instead of...

dataTable.initializeTable();

...do this

dataSource.sendRequest(null,{success:dataTable.onDataReturnInitializeTable,scope:dataTable});



Date: 2009-01-05 14:37
Sender: nobody

anybody here?


Date: 2008-12-16 15:19
Sender: nobody

Hi guys,

could you please just give a clue?
(our managers are in the process of deciding - whether to use YUI Table,
and this issue is somehow critical: without it - no instant update of cells
- when there are scrollbars and a lot of data).

thanks and regards


Date: 2008-12-12 00:48
Sender: vgavrilovAccepting Donations

And also after
dataTable.initializeTable();
call - no cell editors! (pressing tab - we rebuild DataTable)



Date: 2008-12-11 22:11
Sender: gpuckettProject Admin

This bug report is being forwarded to the author or current owner of the
affected component for additional investigation and response.


Attached Files ( 3 )

Filename Description Download
refresh_test.html the same file but cleaned even more Download
refresh_test1.html working example with the fix Download
refresh_test2.html not working example (different usage) with the same fix Download

Changes ( 25 )

Field Old Value Date By
close_date - 2009-01-28 22:13 gpuckett
allow_comments 1 2009-01-28 22:13 gpuckett
resolution_id Remind 2009-01-28 22:13 gpuckett
status_id Open 2009-01-28 22:13 gpuckett
status_id Closed 2009-01-28 15:44 vgavrilov
resolution_id Works For Me 2009-01-28 15:44 vgavrilov
close_date 2009-01-24 07:08 2009-01-28 15:44 vgavrilov
allow_comments 0 2009-01-28 15:44 vgavrilov
priority 5 2009-01-28 15:44 vgavrilov
status_id Open 2009-01-24 07:08 gpuckett
assigned_to jennykhan 2009-01-24 07:08 gpuckett
allow_comments 1 2009-01-24 07:08 gpuckett
close_date - 2009-01-24 07:08 gpuckett
File Added 308837: refresh_test2.html 2009-01-12 20:08 vgavrilov
File Added 308836: refresh_test1.html 2009-01-12 20:07 vgavrilov
File Deleted 304960: 2009-01-12 20:07 vgavrilov
close_date 2009-01-09 23:32 2009-01-12 20:07 vgavrilov
status_id Pending 2009-01-12 20:07 vgavrilov
resolution_id None 2009-01-09 23:32 gpuckett
close_date - 2009-01-09 23:32 gpuckett
status_id Open 2009-01-09 23:32 gpuckett
File Added 304979: refresh_test.html 2008-12-12 00:45 vgavrilov
assigned_to nobody 2008-12-11 22:11 gpuckett
summary DataTable is not refreshed by dataTable.initializeTable() 2008-12-11 22:11 gpuckett
File Added 304960: refresh_test.html 2008-12-11 22:06 vgavrilov