Completed
Last Updated: 15 Aug 2017 10:54 by ADMIN
ADMIN
Hristo
Created on: 03 May 2017 08:08
Category: PdfViewer
Type: Feature Request
1
ADD. RadPdfViewer - add render started and render completed events for the pages in RadPdfViewer
The events should provide information as to when a page is about to be rendered and when it is displayed in the control.
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
1 comment
ADMIN
Ralitsa
Posted on: 16 May 2017 12:21
In order to display a waiting bar or another indicator, while RadPdfViewer is rendering a heavy first page or the end user scrolls pages quickly, it can be used the following code snippet: 

void radPdfViewer1_PageRenderCompleted(object sender, EventArgs e)
{
    if (this.radPdfViewer1.InvokeRequired)
    {
        this.radPdfViewer1.BeginInvoke((MethodInvoker)delegate
        {
            this.radWaitingBar1.StopWaiting();                   
            this.radWaitingBar1.Visible = false;
        }); 
    }
}

void radPdfViewer1_PageRenderStarted(object sender, EventArgs e)
{
    if (this.radPdfViewer1.InvokeRequired)
    {
        this.radPdfViewer1.BeginInvoke((MethodInvoker)delegate
        {
            this.radWaitingBar1.Visible = true;
            this.radWaitingBar1.StartWaiting();
        });
    }
}