I have a WebDialogWindow, several actually, but one specifically, I want to hide the Close button or, if I can't do that, then I want to trap its event. I can't figure out either method I have ImageButtons in them for various reasons and, of course I can use one that way to cancel the dialog, but if I have to do that I want to hide the Close button or not use an button and trap the Close event.. Can either of these be done and if so, how would I go about it. Thanks.
Hello dbichop9,
Thank you for posting in our community. According to your question you can hide the close button and every other button as well. The close button will be hidden if you set:
<CloseBox Visible="False"></CloseBox>
<CloseBox
Visible="False"></CloseBox>
For more details around how to configure your WebDialogWindow I can recommend you to follow this link in our samples browser:
http://samples.infragistics.com/aspnet/Samples/WebDialogWindow/Display/ConfiguringTheHeader/Default.aspx?cn=dialog-window&sid=f536fe3e-5897-4e1b-8cc5-492254573df4
Also you can review the rest of the samples as well you can find them helpful.
I hope this helps.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Thanks, but where do I put it? I have tried everywhere in the WebDialogWindow and it errors saying that CloseBox is not a part of the control. Below is my html code
<ig:WebDialogWindow ID="dlgStep2" runat="server" Font-Size="Medium" Height="410px" Width="700px" InitialLocation="Manual"Modal="True" Moveable="False" WindowState="Hidden" Left="385px" Top="250px" Resizer-Enabled="false" > <Header CaptionText="AOD Finalization"></Header><ContentPane><Template> <br /><asp:Panel ID="pnlStep2" runat="server" HorizontalAlign="Center" Style="vertical-align: middle"><asp:Label ID="lblStep2Message0" runat="server" Font-Size="Large" ToolTip="Step 2 Message" Width="500px"></asp:Label><br /><br /><asp:ImageButton ID="ibtnFinalizeCancel" runat="server" ImageUrl="~/Images/cancel2.png" /><br /><br /><asp:Label ID="lblCancelMessage" runat="server" ToolTip="Cancel Message" Font-Size="small" Font-Italic="true" ></asp:Label></asp:Panel></Template></ContentPane></ig:WebDialogWindow>