This is a migrated thread and some comments may be shown as answers.

Telerik.Web.UI.RadWindow() problem

1 Answer 79 Views
Window
This is a migrated thread and some comments may be shown as answers.
Diana
Top achievements
Rank 1
Diana asked on 26 Jun 2009, 10:44 PM

 

 

Hi

 
Me.RadWindowManager1.Windows.Add(newWindow)
(newWindow) is underline and giving me an error of
"value of type 'telerik.web.UI.RadWindow' cannot be converted to 'telerik.webcontrols.RadWindow"

This is the sub.

Protected
Sub LinkButton2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton2.Click

 

 

Dim

 

newWindow As New Telerik.Web.UI.RadWindow()

 

 

 

newWindow.ID = "AES"

 

newWindow.NavigateUrl =

"~/AES/expshiptb.aspx"

 

newWindow.VisibleOnPageLoad =

"True"

 

 

Me.RadWindowManager1.Windows.Add(newWindow)

 

 

End Sub


 

 

<radW:RadWindowManager ID="RadWindowManager1" runat="server"

 

 

ShowContentDuringLoad ="false" ReloadOnShow ="true" Skin ="Web20"

 

 

 

Your help on this problem will be appreciated.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Jun 2009, 07:40 AM
Hi Diana,

You have ASP.NET version of RadWindowManager on page and trying to add ASP.NET AJAX version of RadWindow to this, that’s why it showing error because of the version ambiguity between these. Create RadWindow for ASP.NET version and add to RadWindowManager.

VB:
 
Dim newWindow As New Telerik.WebControls.RadWindow() 
'Set the properties of window and add to RadWindowManager 

Thanks,
Shinu.
Tags
Window
Asked by
Diana
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or