Do you have any working sample project using this dialog built using VB in VS2013 or VS2017?
I have been working on this for a couple of days but when the dialog.show is called in javascript nothing happens.
This is true in IE and Chrome.
Can you create a new project following the instructions at https://es.infragistics.com/help/aspnet/webdialogwindow-displaying-the-webdialogwindow-client-side?
one issue is that I have never been able to get this function to work as shown in the documentation.
function btnDialogWindow_onClick(){ var dialog = $find("WebDialogWindow1"); //Find here does not return anything. dialog.hide();}
But this will find the dialog
function btnDialogWindow_onClick() {
var dialog = $('[name=WebDialogWindow1]');
dialog.hide();
};
And this is not valid either.
<td align="center" valign="middle"> ...</td>
Should be
<td style="align-content:center"></td>
Thanks
Thank you for your reply jagsoft ,
The step by step guide is showing how to use the control in a Web Site scenario but you are correct that this would be an useful information and it will be included in the future releases of the documentation. Thanks, Alexander Marinov
Thank You, It would have been nice to have that documented somewhere in the walk through s maybe I wouldn't have wasted a weeks worth of time on this.
Set the WebDialogWindow's "ClientIDMode" option to "Static" and this will work. Your WebDialogWindow should look like this:
<ig:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="373px" Width="528px" InitialLocation="Centered" WindowState="Hidden" ClientIDMode="Static">
If needed, I will provide you the working sample but this code snippet must be enough for you to execute the desired scenario.
Thanks, Alexander
That's nice and dandy but what about a new VS2013 or VS2017 ASP.NET Webforms application?
I am including my sample application for your viewing.
Hello Earl,
Thank you for using Infragistics ASP.NET controls!
I am attaching a sample in C# that reproduces the scenario described in the help topic. I have tried it in IE11 and Chrome and the Dialog opens when clicking the image and it hides when clicking the OK button.
Please, have a look at the sample and write me back if any questions pop out.
You are right about the styling issue in step 12 and I will fix this to be correctly displayed in future versions of the documentation. Thanks a lot about that!
I want to thank you once more for choosing Infragistics ASP.NET!
Best regards, Alexander Marinov, Software developer, Infragistics