SmartGWT Power 2.3 - December build
I'm sure there is a quick answer to this .. so I'll apologize up front for not being able to make it work.
I created a ListGrid (class) which populates via a SQL Datasource. All works great. One of the columns is a modification date. I have a requirement to track & display the single most recent date for all rows and display it - as in
"data last modified YYYY-MM-DD".
I created a CellFormatter for that ListGridField which compares the current date value to a saved value and stores it as a member in the ListGrid (getters/setters available). I can walk it in the debugger and see the compares working and value storing.
My problem is timing ... I'm trying to grab that date value from the ListGrid when the grid is done loading before it all displays, and I've tried onDraw and dataArrived handlers on the ListGrid, but in debug, those are executed before the CellFormatter executes.
I have this hierarchy, and I tried onDraw for the layout as well.
Tabset
-Tab
--VLayout
---Window (it's a dashboard)
----ListGrid
What event on what UI element will indicate when the ListGrid is loaded making the saved date value available before it all draws?
Thanks in advance.
I'm sure there is a quick answer to this .. so I'll apologize up front for not being able to make it work.
I created a ListGrid (class) which populates via a SQL Datasource. All works great. One of the columns is a modification date. I have a requirement to track & display the single most recent date for all rows and display it - as in
"data last modified YYYY-MM-DD".
I created a CellFormatter for that ListGridField which compares the current date value to a saved value and stores it as a member in the ListGrid (getters/setters available). I can walk it in the debugger and see the compares working and value storing.
My problem is timing ... I'm trying to grab that date value from the ListGrid when the grid is done loading before it all displays, and I've tried onDraw and dataArrived handlers on the ListGrid, but in debug, those are executed before the CellFormatter executes.
I have this hierarchy, and I tried onDraw for the layout as well.
Tabset
-Tab
--VLayout
---Window (it's a dashboard)
----ListGrid
What event on what UI element will indicate when the ListGrid is loaded making the saved date value available before it all draws?
Thanks in advance.
Comment