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
100
Create WebDialogWindow dynamically
posted

 How I crete a WebDialogWindow dynamically?

 

I try code:

 

 Dim Dialog As New Infragistics.Web.UI.LayoutControls.WebDialogWindow()
                Dim L As New Label
                L.Text = "DESEJA REALMENTE SAIR?"
                With Dialog
                    .Modal = True
                    .ContentPane.Controls.Add(L)
                    .Moveable = True
                    .Header.CaptionText = "Teste Caption"
                    .InitialLocation = Infragistics.Web.UI.LayoutControls.DialogWindowPosition.Centered
                    .WindowState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Normal
                    .Visible = True
                    .DataBind()
                End With
                Me.Controls.Add(Dialog)

Parents
No Data
Reply
  • 19308
    posted

    I'm not sure what the context of Me is here, but if it's the Page, then you have to add it to Me.Form.  All controls need to be added to the form element, not directly to the page.  If Me is another container control, just be sure that you're adding that control to the Form element.

    Hope this helps,

    -Tony

Children