Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
WARP client side events
posted

Trying to figure out how to add a client side event to a WARP on the actual template page.  I have the script I want to run, just don't know how to tie it to the actual event of the control.  Here's the script:

function warpProjectForecast_InitializePanel(oPanel)
{
    var progress = oPanel.getProgressIndicator();

    progress.setImageUrl("tips.gif");
}

Now on the webGrid I could add it to the <ClientSideEvents> tag but I don't find anything like that for the WARP.

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    Hi,

    I suggest you to add ClientSideEvents to WARP using VisualDesigner. That object will appear in Properties.
    If you use Source view only, then members of ClientSideEvents go directly into main tags (though there is no intellisense for that). Below is example:

    <igmisc:WebAsyncRefreshPanel ID="WARP1" runat="server"
         InitializePanel="WARP1_InitializePanel">
    </igmisc:WebAsyncRefreshPanel>

    Note: Since WARP extends asp:Panel, it can not have aspx tags with extra subobjct similar to <ClientSideEvents /> of other controls. Because logic of asp:Panel will interpret those tags as a child control, but not as a subobject and of course all will fail at run time.

Children
No Data