I have a dilemma with a rad window. Here is an example.
I have grid and some buttons on a page. I am opening the radwindow from a link button in the grid using the ItemCommand event in code behind.
Here is the code where I open the radwindow:
Protected Sub rgListingWithImages_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgListingWithImages.ItemCommand
Dim value As String = Nothing
Select Case e.CommandName
Case ("DeleteRow")
'Do something here
Exit Select
Case ("Slides")
'Open the slide window
'RadWindowManager1.Windows(0).Visible = True
Dim newWindow As New RadWindow
newWindow.NavigateUrl =
"http://www.google.com"
newWindow.Top = Unit.Pixel(22)
newWindow.VisibleOnPageLoad =
True
newWindow.Left = Unit.Pixel(0)
RadWindowManager1.Windows.Add(newWindow)
Exit Select
End Select
End Sub
Here is the problem.
The window opens OK form the "Select" command of the grid. However when I click on the "Delete" command of the grid the window opens again and when I click on any other button on my page the radwindow opens.
Is there a way to open the window jsut from the "Select" event of hte grid?