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

problem with Sys.Application.initialize();

2 Answers 182 Views
Window
This is a migrated thread and some comments may be shown as answers.
ezra barak
Top achievements
Rank 1
ezra barak asked on 10 Nov 2009, 11:06 AM
Hi
I'm trying to put a radwindow to update radgrid exactly like this demo
and whatever i do i get this problem: Object Expected and the exception referance to specifc line:  CloseAndRebind();Sys.Application.initialize();

i tryed almost evrything but i can't fix it
can u please tell me how i can fix it

best regurds
Ezra



2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 10 Nov 2009, 11:41 AM
Hello Ezra,

Did you set DestroyOnClose=true for the RadWindow that you are using? If so, you should switch the lines in the CloseAndRebind() function.
e.g.

function CloseAndRebind(args)
{
    GetRadWindow().BrowserWindow.refreshGrid(args);
    GetRadWindow().Close();
}


If this doesn't help, please open a support ticket and send us a small sample project that reproduces the problem so we could investigate it.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
ezra barak
Top achievements
Rank 1
answered on 10 Nov 2009, 12:56 PM
Thanks for the answer but i finally anderstand the problem and have the solution.

By default, when AJAX is enabled for a page, ASP.NET inserts a call to the initialize method immediately before the closing </form> tag on the page. Any code that appears after the </form> tag will not be initialized as part of the application and will not have access to ASP.NET AJAX functionality.

this is written on MSDN and indid this was the problem

thanks anyway
Ezra
Tags
Window
Asked by
ezra barak
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
ezra barak
Top achievements
Rank 1
Share this question
or