The repeater will always create as many element as its model says.
Since your model is a simple number, just decrement that number.
Cheers,
_
The repeater will always create as many element as its model says.
Since your model is a simple number, just decrement that number.
Cheers,
_
Once some number of lines is drawn, they will not be deleted when a smaller number of lines is given to the model. So how to delete them and start drawing again?
A Repeater that operates on a primitive model, a number or a list, will always recreate the number of delegates for the current model's count.
I.e. if the number changes from 1 to 2, it will delete all delegates and create 2.
If the number changes from 2 to 1, it will delete all delegates and create 1.
In your code the most puzzlng thing is why you create a new additional Analysis component every time the combobox changes.
Cheers,
_
SOLVED. Thank you.
Last edited by bchinfosieeuw; 10th August 2016 at 15:38.
Bookmarks