I have a very simple example that I am trying to make work where I have a WebDialogWindow inside of a WARP. I want to have a button outside of the panel that causes a refresh to bring up the WebDialogWindow. I have now tried the button both inside and outside and neither works. It seems to only work when I use a full postback. Can anyone tell me how to do this? How do I make this work with the button outside of the WARP?
<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server">
<asp:Button Text="Show Window" ID="showWindow" runat="server" onclick="showWindow_Click" />
StyleSetName="Office2007Blue" Width="400px" WindowState="Normal" Visible="false">
</ig:WebDialogWindow>
</igmisc:WebAsyncRefreshPanel>
Take a look at this help article:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/WebAsyncRefreshPanel_Trigger_a_Smart_Callback_in_WebAsyncRefreshPanel.html
You want to set the TriggerControlIDs of the WARP to include the button that is outside of the panel.
Well, I tried it, but it doesn't work... And I don't know where is my mistake.
The aspx code is:
<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" Height="220px" Width="280px" LinkedRefreshControlID="WebAsyncRefreshPanel1" TriggerControlIDs="WebImageButton1">
<cc4:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="300px" Width="400px" Modal="True" WindowState="Hidden">
<ContentPane>
<Template>
</Template>
</ContentPane>
<asp:Button ID="showDialog2" runat="server" Text="Show" onclick="showDialog2_Click"/>
And my button code in the .cs file is:
}
Where is my mistake?