Update the content of RadSplitter Pane

5 posts, 1 answers
  1. kachy
    kachy avatar
    89 posts
    Member since:
    Aug 2005

    Posted 03 Mar 2010 Link to this post

    Hi,

    In my project, when I upload file using SoftArtisan FileUp component, for the Transfer Progress Window, I am using a RadWindow and update the content of that RadWindow using
     transferwindow.get_contentFrame().contentWindow.document.write(strHTML);
    strHTMl is the string to be written to RadWindow including the
    <HTML><HEAD><TITLE>" + "Transfer Status" + "</TITLE> and other content needed for  HTML page.

    I have a requirement where I have to open another page parallel to this transfer window. Can I open my tranfer window in RadPane inside the RadSplitter , where I can open my second page in the second RadPane. Can I update the content of the RadPane dynamically passing the string to the page?

    Thanks.

  2. kachy
    kachy avatar
    89 posts
    Member since:
    Aug 2005

    Posted 04 Mar 2010 Link to this post

    Hi,

    I think my basic question is, if I open a Radwindow which will have a page with RadSplitter, can I get a reference to the RadPane in that page from Parent Window. Currently, I open a RadWindow to show the tranfer status, in an event

    TransferProgressEventHandler, I just check the RadWindow and update the content using this code:

     

    transferwindow.get_contentFrame().contentWindow.document.write(

    "");

     

    transferwindow.get_contentFrame().contentWindow.document.close();

    transferwindow.get_contentFrame().contentWindow.document.write(strHTML);
    So, if I can get the reference of the RadPane inside the RadWindow from the parent page, I will be able to do the same thing.

    Thanks.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ron
    Ron avatar
    86 posts
    Member since:
    Sep 2009

    Posted 04 Mar 2010 Link to this post

    Thanks that worked out for me.

    EDIT: Sorry this was posted to the wrong question by accident.
  5. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 09 Mar 2010 Link to this post

    Hi kachy,
    Yes, you can get a reference to the RadPane client object that is in the child page of the RadWindow control. In order to do this, you should define a function that returns a reference to the pane object on the page, opened in the window and then call it from the parent page the following way:
    var contentFrame = $find("<%= RadWindow1.ClientID %>").get_contentFrame();
    var pane = contentFrame.contentWindow.GetRadPane();
    alert(pane.get_id());

    I have attached two simple pages that demonstrate the approach.

    Best wishes,
    Tsvetie
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  6. kachy
    kachy avatar
    89 posts
    Member since:
    Aug 2005

    Posted 10 Mar 2010 Link to this post

    Thanks, it worked. I am going to use
    pane.set_content(htmlString) to update the content after getting the handle of the RadPane.

    Thanks
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017