Leadtools.Documents.UI Namespace > DocumentViewer Object : UseAjaxImageLoading Property |
get_useAjaxImageLoading();
set_useAjaxImageLoading(value);
Object.defineProperty('useAjaxImageLoading');
Type | Description |
---|---|
boolean | true if the application should use AjaxDataUrl to load images, or false if the application should use ImageUrl. Default is false. |
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.