Control render complete query

  1. #1

    Control render complete query

    I have a viewport with a west port that is collapsed by default.
    <West minwidth="300" maxwidth="400" split="true" collapsible="true">
                                <ext:FormPanel id="pnlWest" runat="server" collapsed="true" BodyStyle="padding: 5px;" width="300" AutoScroll="true" title="Search">
                                    <Body>
    I have been asked to provide the port title vertically up the collapsed panel. Obviously text won't render vertically in explorer so I have created a gif image of the text. This is appended to the bar when it has finished rendering to the page.

    function ViewPortRendered()
    {
        var oDivCollapsedWestPannel = &#100;ocument.getElementById("pnlWest-xcollapsed");
        var opContainer = &#100;ocument.createElement("DIV");
        opContainer.setAttribute("id", "divImageHolder-xcollapsed");
        var opImage = &#100;ocument.createElement("IMG");
        opImage.setAttribute("src", "Images/SearchUp.gif");
        opImage.setAttribute("height", "45px");
        opImage.setAttribute("width", "15px");
        opContainer.setAttribute("padding-left", "3px");
        opContainer.setAttribute("style", "height:45px;width:15px;");
        opContainer.appendChild(opImage);
        oDivCollapsedWestPannel.appendChild(opContainer);
    }
    I do have an event I have been able to latch on to. It is the pluginLoaded event of a silverlight control hosted on the same page which only fires when the whole page has completely rendered. However, what if I didn't have the silverlight control. How would I know that the collapsed west port has finished rendering? I tried the Render event listener but that fires before the pnlWest-xcollapsed object has been created. There is an afterrender event for a viewport but this isn't supported by coolite. Any ideas?

  2. #2

    RE: Control render complete query

    Hi,

    Does the following sample can help you?


    https://examples1.ext.net/#/Layout/B..._Region_Image/


  3. #3

    RE: Control render complete query

    Perfect, Thanks.

Similar Threads

  1. Complete demo of desktop control with code
    By softlabsgroup.support in forum 1.x Help
    Replies: 4
    Last Post: May 02, 2012, 6:51 AM
  2. [CLOSED] User control does not render in Portalate
    By nirajrdave in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 29, 2011, 11:09 AM
  3. [CLOSED] Render third party control
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 29, 2011, 6:41 PM
  4. Partially Render a user control in MVC
    By alighaddar in forum 1.x Help
    Replies: 0
    Last Post: Oct 20, 2009, 1:11 PM
  5. Replies: 1
    Last Post: May 15, 2009, 4:51 AM

Posting Permissions