I am trying to change the recordtext
of a display grid to a custom format. I am using a treeview as the selector that refreshes the display grid. I need to find the total records for the grid and I am able to get this value using the getGridParam
records method when I click on the treeview node and load the display grid.
However, after I get this value and try to create the custom recordtext, the record count is the previous value, not the current records count. I know that the gridComplete
happens before the loadComplete
, but even placing the get in the gridComplete
and the set int he loadComplete
, it still doesn't work, even with a reloadGrid
trigger. If I click on the treeview node twice, I get the correct value.
I am thinking it is a timing issue as to when the new value is ready to set the recordtext
. Any help would be great, thanks in advance.