Hi All,
I am using infragistics webdialogwindow .for opening dialog window at run time i m using following js function
function
OpenFilter() {
var
Filter = '<%=digFilter.ClientID%>'
var dialog = $find(Filter);
dialog.show();
return
false;}
My problem is its opening first time without any issue. while close and open again it shows blank window.
it will be helpfull if i get some workarround on this.
Regards,M.Seenuvasan
When I display the WebDialogWindow with dialog, I use the following code I came across somewhere:
var oWebDialogWindow1 = $find("WebDialogWindow1");oWebDialogWindow1.set_windowState($IG.DialogWindowState.Normal);
Hide it with:
var oWebDialogWindow1 = $find('WebDialogWindow1');oWebDialogWindow1.set_windowState($IG.DialogWindowState.Hidden);
Works fine for me
Andez
Hi Anderson,
Thank you very much its working fine now.
also i have following doubt..
im using some user control inside this dialog window. in that usercontrol i'll be having some buttons.
to avoid postback when click on any button i'm using below code
<
igmisc:WebAsyncRefreshPanel ID="test" runat="server">
<Filter:FilterBox ID="frmFilter" runat="server" />
</igmisc:WebAsyncRefreshPanel>
But it still postback when click on button.. any idea on this..
Regards.
M.Seenuvasan
Depends how you putting the buttons on I think.
Are you using WebImageButton or and ASP Button (asp:Button)?
If using ASP Button, turn off the UseSubmitBehaviour (set to False)If using WebImageButton then set AutoSubmit to False. This may do it.
Also in your code listing above, where is the WebDialogWindow? Is it in the WebAsyncRefreshPanel (WARP)?
Anyways, I'm not too sure if you need to use the WARP. The UpdatePanel may be better.
I can put a WebImageButton in the UpdatePanel and it is not causing the whole page to refresh.
Hi Anderson,i'm using WebAsyncRefreshPanel like below and buttons are asp buttons only.
<ig:webdialogwindow ID="digFilter" runat="server" Height="40%" Width="100%" InitialLocation="Centered" Modal="True" Moveable="False"> <ContentPane> <Template> <table> <tr> <td> <igmisc:WebAsyncRefreshPanel ID="test" runat="server"> <Filter:FilterBox ID="frmFilter" runat="server" /> </igmisc:WebAsyncRefreshPanel> </td> </tr> </table> </Template> </ContentPane> </ig:webdialogwindow>but it seems to be not working..
i tried with below option also.i removed webasyncrrefresh pannel and added update pannel inside user control like below.<asp:UpdatePanel id="updfilter" runat="server" UpdateMode="Always"><ContentTemplate>
<table width="960px" > <tr> <td> <asp:button id="btn_save" runat="server onclick="btn_save_Click" UseSubmitBehavior="false"></asp:button> </td> </tr></table>
It will be helpful if i get any idea from you.Regards,
</ContentTemplate></asp:UpdatePanel>
Hi seenuvasan,
I've attached a little sample code. The sample contains a webdialogwindow in an UpdatePanel and webdialogwindow in a WARP.
When clicking on either of the buttons is the webdialogwindows will remove the dialog from the page. The event hander code for the button clicks are running on the server that are removing the dialogs from the page in the updatepanel. When the page has ran (page lifecycle completed on server), only the updatepanel portions are refreshed on the client (from my understanding).
So when you run the code it should refresh instantly.
Also you could use javascript to hide the webdialogwindow from the client if required.
Hi,
The AJAX based controls like UpdatePanel, WebDialogWindow, WebSplitter, etc are not compatible with WARP or UltraWebTab in async mode. Those controls can be used only side by side, but not nested in each other.
If application needs async postbacks, then it should replace WARP by UpdatePanel.
Hi Andez,
Thank you very much for your sample. Since i was in out of station i did not reply you quickly. i will use this sample and let you know.Regards,M.Seenuvasan