How to show the same opened window again

2 posts, 0 answers
  1. Prabakaran
    Prabakaran avatar
    14 posts
    Member since:
    Feb 2015

    Posted 19 Nov 2015 Link to this post

    Dear Team,

    If the doc is open for the first time, a new doc window will open and if the same doc is open again, the existing window should be set active. Currently keep opening new windows instead show already opened window. How can i achieve this. please advise.

    var openwindow = new PDFViewerWindow();
                                      openwindow.pdfViewer.DocumentSource =
                                          new PdfDocumentSource(new Uri(uri, UriKind.RelativeOrAbsolute));

    Thank you.



  2. Tanya
    Tanya avatar
    891 posts

    Posted 24 Nov 2015 Link to this post

    Hello Prabakaran,

    You could implement something like caching to keep the information about the corresponding window for each document and set the desired window as active when needed. You may find helpful to check this reply on StackOverflow, which concerns a scenario similar to this one.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top