useAjaxImageLoading Property

Summary

Determines how images will be loaded when a new document is loaded.

Syntax

JavaScript Syntax
Object.defineProperty(DocumentViewer.prototype, 'useAjaxImageLoading', 
	get: function(), 
	set: function(value) 
) 
TypeScript Syntax
useAjaxImageLoading: boolean; 

Property Value

true if the application should use AjaxDataUrl to load images, or false if the application should use ImageUrl. Default is false.

Remarks

This value determines how images will be loaded for DocumentViewerThumbnails (regardless of the value of UseGrids) and DocumentViewerView. Using AJAX allows the application to hook to the PrepareAjax event to modify the request to suit your application's needs; the AJAX method, route, parameters, data, and headers can all be changed.

This value will also determine how images are loaded when Url is set (either externally or when an image is reloaded through AutoRemoveItemElements). The DocumentViewer hooks in to the ImageLoading event to change the UrlMode to match the value kept in accordance with this value. To change the ImageLoaderUrlMode back for those cases, you can employ this same strategy and hook to the ImageLoading event in your application.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents.UI Assembly