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

Custom Controls and binding - preventing rerendering on model change

$
0
0

I've been taking a look at sap.ui.ux3.DataSet.

If the model that I've assigned to a DataSet instance is asynchronously updated I see that there is an updateItems function being invoked.

After this function executes, DataSet rerenders and the new items are shown.

 

I also took a look at sap.ui.commons.TextView.

If the model that I've assigned to a TextView instance is asynchronously updated, I see that the "setText" function is invoked, but the control is not rerendered.

 

The key observation here is that when the model is updated, DataSet is rerendered, while TextView is not.

 

This has led me down the path to trying to understand how to override the default behavior when the model of a control is updated.

Sometimes I want to re-render the whole control, whereas other times I only want to re-render part of the control.

 

Are update<Aggregation> and set<Property> the hook points for overriding behavior when the model changes?


Is there a document somewhere which explains when a render/rerender is triggered on a control?

 

Thanks for any information


Viewing all articles
Browse latest Browse all 8712

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>