Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8620

onAfterRendering vs. JSONModel.loadData()

$
0
0

Hi all,

I would like to update some page elements as early as possible. The events onAfterRendering/onBeforeRendering say they may be used exactly for that, however my heatmap is getting its model from Hana and it takes a while to load, so when these events fire, there are actually no display elements created yet (is this intended? They say they fire after rendering which is definitely not the case here). The same holds for JSONModel.attachRequestCompleted(), it has the model data but the heatmap is not yet created. On the other hand, using Heatmap.initialized is too late, the elements have already been displayed and the user would watch them updated which I'm trying to avoid. Which event is the right one to use, so that the model data is already available and DOM elements are already created but not yet displayed on the screen?

 

Cheers,

 

-- Micha


Viewing all articles
Browse latest Browse all 8620

Trending Articles