Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
WebDialogWindow Visible/Enable
posted

Hi Everyone,

VS2010, CLR 4.0, VB Infr 2011_1

I have a webdialogwindow wiht a WebImageviewer  in a child page that I am not able to put it visible/enable. The idea is when you click a button load the images and get the Webdialogwindow visible in modal way. If I specify the property WindowState="Normal" when the page is loaded first time works, (this is not the functionality I am looking for), the dialog has to be shown when I press the button. Once the dialog is shown, first time, because  it is modal the only action to exit is Close button in the header, after that if a press the trigger button again i don't get to have the dialog shown again.

Thanks in advance

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<ig:WebDialogWindow runat="server" Width="552px" Height="430px" ID="WebDlgWind1"

 

 

 

InitialLocation="Centered" Moveable="False" Modal="true" WindowState "Normal">

 

 

 

<Header CaptionText="Image Viewer Modal" />

 

 

 

<ContentPane>

 

 

 

<Template>

 

 

 

<asp:UpdatePanel runat="server" ID="PanelViewer" UpdateMode="Conditional" ChildrenAsTriggers="false">

 

 

 

<Triggers>

 

 

 

<asp:AsyncPostBackTrigger ControlID="WebimagebuttonViewer" EventName="click" />

 

 

 

</Triggers>

 

 

 

<ContentTemplate>

 

 

 

<ig:WebImageViewer ID="WebImageViewer1" runat="server" Width="535px" Height="325px" Header-Visible="false" Footer-Visible="false" >

 

 

 

<ScrollAnimations>

 

 

 

<NextItem Alignment="Near"/>

 

 

 

</ScrollAnimations>

 

 

 

<PreviousButton Visible="True" />

 

 

 

<NextButton Visible="True" />

 

 

 

<Header Visible="false" ></Header>

 

 

 

</ig:WebImageViewer>

....

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Private Sub WebimagebuttonViewer_Click(sender As Object, e As Infragistics.WebUI.WebDataInput.ButtonEventArgs) Handles

WebimagebuttonViewer.Click

 

 

 

 

 

 

Dim i As Integer  = 1

 

 

 

While i <= 7 Dim image As New ImageItem("/Images/IG00000/Big/" + i.ToString() + ".jpg", "", "")

 

 

 

Me.WebImageViewer1.Items.Add(image)

System.

 

Math.Max(System.Threading.Interlocked.Increment(i), i - 1)

 

 

 

 

 

 

End While

 

 

 

WebDlgWind1.WindowState = Infragistics.Web.UI.LayoutControls.

 

DialogWindowState.Normal

WebDlgWind1.Visible =

 

True

WebDlgWind1.Enabled =

 

True

 

 

 

End Sub

 

 

 

 

Parents
  • 240
    Offline posted

    OK. I found it, now it is working with the functionality I need. The problem was I took code from InfragProperties samples and looks doesn't work, but looking the Infrag videos about WebDlg I changed the position of the Update Panel and the Triggers and now the WebDialogWindow is shown as demanded pressing the right button and making the Postback only the WebDlgWind specified in the Update Panel.

    Thanks.

     

Reply Children
No Data