Update management and aggregation properties and reprocess

If I update a property or aggregation on a control, how can I prevent it from rendering?

For example, if I add an item to an aggregation, I want to display only the new item, not the full reder.

Looking for general tips ...

+4
source share
1 answer

You can do this if it is a custom control.

In the user control, specify a new method that adds the delta part and displays it (you can use jQuery).

The new method should also add aggregation, but should not trigger re-rendering. Verify Add Aggregation Method Definition

addAggregation(sAggregationName, oObject, bSuppressInvalidate?)

the bSuppressInvalidate, true, .

:

customControl.prototype.addNewImage(img){

// some code to manipulate dom and add image
//...
//...

this.addAggregation(sAggregationName, img, false)

}

,

+3

Source: https://habr.com/ru/post/1540848/


All Articles