Gets or sets a Boolean value that indicates whether the document map is collapsed.
To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes.
var mapCollapsed = $find(viewerId).get_documentMapCollapsed(); $find(viewerId).set_documentMapCollapsed(isCollapsed);
A Boolean value that indicates whether to collapse the document map.
When the Web page is performing a postback or the client-side control is loading content, accessing the methods or properties will cause an exception with the message: "The report or page is being updated. Please wait for the current action to complete." Use the isLoading property to check whether the report or page is being updated and whether you can access the methods and properties.
The following method shows how to toggle the document map.