Controls and Elements
Every MVC control is associated with an HTML element that hosts it on the page.
To get a reference to the element hosting the control, use the hostElement property (available in every C1 MVC control). Use the static method wijmo.Control.getControl(element) to get a reference to the control being hosted by an element.
In applications having tab controls or dynamic views, the control layout often becomes invalid if the size or visibility of the host element is changed and the control is not notified about the same.
However, in case of MVC controls, layout of all the controls is updated according to the size of their host elements. MVC controls provide wijmo.Control.invalidateAll method to notify the controls about change in their host element, so that the controls update their layout accordingly.
For example, use the buttons below to observe resizing in the grid in two cases; without using invalidateAll method (WRONG way) and the case using invalidateAll method (RIGHT way):