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.
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.