Master.beginUpdate

Syntax

beginUpdate ();

Description

The beginUpdate method starts wizard update.

Comments

The method is used together with the Master.endUpdate method. If the beginUpdate method is called before wizard redrawing, the redrawing handle is started only after calling the Master.endUpdate method.

Example

To execute the example, the page must contain the Master component named master. Add the Begin Update and End Update buttons:

        var butBegin = new PP.Ui.Button(
        {
            Content: "Begin update",
            ParentNode: document.body,
            Click: function ()
            {
                master.beginUpdate();
                master.addNavItem(new PP.Ui.NavigationItem(
                {
                    Title: "New Item"
                }))
            }
        });
        var butEnd = new PP.Ui.Button(
        {
            Content: "End update",
            ParentNode: document.body,
            Click: function ()
            {
                master.endUpdate();
            }
        });

After executing the example clicking the Begin Update button does not start component drawing. Clicking the End Update button adds a new panel named New Item to the component.

See also:

Master