Dynamically Add Tab, PageView, Window

3 posts, 1 answers
  1. Curt
    Curt avatar
    27 posts
    Member since:
    Jan 2011

    Posted 12 Aug 2011 Link to this post


    I am trying to create a way to display some pdf document that are location on a remote drive connected to our server. This seems like a difficult problem (and Im pretty new). What I have done so far is 1- Read files from specified folder, 2- Create Tab & Pageview for each pdf file. 3 - Read/Write the file to aspx page adding query sting to request specified pdf, 4- Create RadWindow for each pdf add to pageview. It seems like things are starting to work except that in every tab it displays every pdf instead of just displaying a single pdf per tab.

    Ive posted my code here [removed by Admin for containing dev version of the Telerik controls].

    Any help would be great, I really only know enough to really break things

  2. Answer
    Peter avatar
    6637 posts

    Posted 18 Aug 2011 Link to this post

    Hello Curt,

    Actually, there is a newly introduced property - ContentUrl which is ideal for this type of scenario. Please, try modifying your code like this.
    protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
          //RadWindow window = new RadWindow();
          //window.EnableEmbeddedSkins = false;
          //window.ShowContentDuringLoad = true;
          //window.VisibleStatusbar = false;
          //window.Behaviors = WindowBehaviors.Reload | WindowBehaviors.Close | WindowBehaviors.Move;
          //window.Width = Unit.Parse("1000px");
          //window.Height = Unit.Parse("300px");
          //window.VisibleOnPageLoad = true;
          //window.NavigateUrl = @"~/BinaryData.aspx?File=" + FileName;
          //window.Style["z-index"] = "0";
          //window.ID = FileName;
          e.PageView.ContentUrl = @"~/BinaryData.aspx?File=" + FileName;

    You can test the ContentUrl property in this demo -

    The ContentUrl is set for the page view for the 'LinkedIn Profile' tab.

    Kind regards,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Curt
    Curt avatar
    27 posts
    Member since:
    Jan 2011

    Posted 18 Aug 2011 Link to this post

    Hell ya Peter! Just what I needed.

    Thank you!
Back to Top