Updating Data in Hidden Column/Cell

Updating Data in Hidden Column/Cell

jefflrjefflr Posts: 1Questions: 0Answers: 0
edited April 2011 in General
Hello,

I am new to DataTables and am having a similar issue to thread 4181. I use an ajax call to fetch data for a single column (hidden during init) and executed only when a row of summarized data is being "expanded" to display all details of that particular object...similar to the example for "Show and hide details about a particular record".

When making the ajax call, I use fnUpdate() method in the success to attempt to provide/present the fetched data to the hidden cell, however, even though I get the data and apply it to the cell, the update does not happen. If I trigger the same fnOpen() method that is initially used to display the hidden details, after retrieving the data and using fnUpdate(), then the data updates.

Also, if I target a cell in the table that is rendered during initialization, it works fine. Right now, the only thing I have that makes it pseudo-work is that I use jquery.live() and use the mosuedown event to make the initial call to fnOpen() along with the ajax call (data fetched and applied to cell, but not updated in view)...and then I use the mouseup event to trigger the second call to fnOpen() and it somewhat works to give the appearnce of a single mouse click to make it all happen.

Not the ideal way, but at least a temporary "workaround"...not very friendly to coffee drinkers cuz if the mouse is removed from the click-zone before it is released, then the second call to fnOpen() doesn't take place.

Any suggestions on what can be done/attempted to be able to update the data of a hidden cell (while still hidden) and have it display with the fetched data when it is made visible?

Thanks in advance!
This discussion has been closed.