ReadonlyCatView.refresh

Syntax

refresh ();

Description

The refresh method refreshes component.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Open the express report source for view by means of theopenDocument method, and add the following code in the document open event handler:

	//Get the Home tool ribbon tab in the view mode
	var readonlyCat = workbookBox.getRibbonView().getReadonlyCategory();
	//Remove the data source for tab
	readonlyCat._Source = null;
	//Refresh component
	readonlyCat.refresh();
				
	var refreshReadonlyCategoryButton = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Refresh", //text      
		Click: PP.Delegate(refreshReadonlyCategory)     
	}); 
				
	function refreshReadonlyCategory()
	{
		//Set data source for tab
		readonlyCat._Source = wbk;
		//Refresh component
		readonlyCat.refresh();
	}

After executing the example the WorkbookBox component and a button named Refresh are placed in the HTML page. On clicking the button a data source is set for the component and the component is refreshed. After that the component can be used.

See also:

ReadonlyCatView