Hi,
I'm using a WebDialogWindow on which I create a lot of buttons dynamically (with their click event handler).
The problem is, that the click events doesn't fire.
Any ideas?
Bodo
Hello,
Can you show your code related to the WebDialogWindow? This information will be needed to better understand your project set-up and to be able to research what may be happening here.
Thanks!
here's my code:
Private Sub btnEmailMitarbeiterZuordnen_Click(sender As Object, e As System.EventArgs) Handles btnEmailMitarbeiterZuordnen.Click
Try
Me.wdwZuweisen.WindowState = Infragistics.Web.UI.LayoutControls.DialogWindowState.Normal
For Each User As clsUser In clsDataManager.getInterneUser
Dim MitarbeiterButton As New Button With {.CommandName = User.systemuserid.ToString,.Text = User.fullname,.Width =New Unit("180px"),.Height =New Unit("28px"),.CssClass ="MitarbeiterZuweisenButton"}
AddHandler MitarbeiterButton.Click, AddressOf MitarbeiterZuordnen
Me.divInterneMitarbeiter.Controls.Add(MitarbeiterButton)
Next
Catch ex As Exception
Fehler(ex)
End Try
End Sub
Private Sub MitarbeiterZuordnen(sender As System.Object, e As System.EventArgs)
Dim MitarbeiterButton As Button = CType(sender, Button)
If MitarbeiterButton IsNot Nothing Then
If clsCrmDataManager.ObjektAnUserZuweisen(clsEnums.enumObjectTypecode.Email, Me.hfAktuelleEmailId.Value, Me.hfQueueItemId.Value, MitarbeiterButton.CommandName, clsEnums.enumQueueTypeCode.privateQueue) = True Then
End If
<ig:WebDialogWindow ID="wdwZuweisen" runat="server" Height="700px" Width="830px" InitialLocation="Centered" Modal="true" WindowState="Hidden" >
<Header CaptionAlignment="Left" CaptionText="Zuweisen">
<CloseBox Visible="True" />
</Header>
<ContentPane>
<Template>
<div id="divInterneMitarbeiter" runat="server">
</div>
</Template>
</ContentPane>
</ig:WebDialogWindow>