problem with Sys.Application.initialize();

3 posts, 0 answers
  1. ezra barak
    ezra barak avatar
    4 posts
    Member since:
    Aug 2009

    Posted 10 Nov 2009 Link to this post

    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. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 10 Nov 2009 Link to this post

    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.
  3. ezra barak
    ezra barak avatar
    4 posts
    Member since:
    Aug 2009

    Posted 10 Nov 2009 Link to this post

    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
Back to Top