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

[Solved] OnClientClose Issue when creating RadWindow in VB.NET code

1 Answer 135 Views
Window
This is a migrated thread and some comments may be shown as answers.
Alex Tushinsky
Top achievements
Rank 2
Alex Tushinsky asked on 25 Jun 2008, 06:33 PM
I've been using the following code to open RadWindows, with the previous version of Telerik ASP.NET components, but it seems to fail with the latest version:

        Dim _window As New Telerik.Web.UI.RadWindow()  
        _window.ID = "Window1" 
        _window.NavigateUrl = "page.aspx" 
        _window.Width = Unit.Pixel(640)  
        _window.Height = Unit.Pixel(480)  
        _window.Title = "title" 
        _window.VisibleOnPageLoad = True 
        _window.Skin = "Vista" 
        _window.OnClientClose = "Refresh();" 
        RadWindowManager1.Windows.Add(_window) 

When _window.OnClientClose line is commented out, the window comes up, otherwise I get a JavaScript error on the page, and no window.  The Refresh() function is on the page, and was working before.

Any help is greatly appreciated!

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 26 Jun 2008, 08:08 AM
Hello Alex,

I don't think that setting directly a function in the OnClientClose property has ever worked. You must set the name of the function only:
_window.OnClientClose = "Refresh"




All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Alex Tushinsky
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Share this question
or