The following code produces a confirm Window but it displays the control object type name and not what I assigned to the DialogParameters
Resulting text in Confirm Window:
"Telerik.Windows.Controls.DialogParameters"
Here is my code:
Dim rWParameters As New Telerik.Windows.Controls.DialogParameters
With rWParameters
.Header = "CONFIRMATION"
.Content = "My message to confirm action"
.OkButtonContent = "Yes"
.CancelButtonContent = "No"
End With
RadWindow.Confirm(rWParameters, AddressOf ShowConfirmationOnClosed)
Private Sub ShowConfirmationOnClosed(sender As Object, e As WindowClosedEventArgs)
Try
If e.PromptResult = "Yes" Then
DoSomething()
End If
Catch ex As Exception
Dim Problem As New Errors(ex)
End Try
End Sub
If I do NOT use DialogParameters and just do this:
RadWindow.Confirm("My message to confirm action", AddressOf ShowConfirmationOnClosed)
I see the confirm Window with correct message.
So it looks like RadWindow.Confirm doesn't accept DialogParameters even though the sample in your documentation indicates it does or should.
I'm using version 2016.1.112.1050 of Telerik.Windows.Controls ... I realize there is a more recent version, but no indication it fixes a problem with RadWindow.Confirm.
Help needed ASAP, please.
Cheers, Rob.