can not close and rebind on safari

2 posts, 0 answers
  1. sulawan
    sulawan avatar
    2 posts
    Member since:
    Jan 2016

    Posted 27 Oct Link to this post

    I am facing an issue with close and rebind radwindow when i click button to close window and rebind radgrid in parent page.

    it work on IE, chrome but it does not close and rebind data on safari.

     

    RadWindow code behind

    protected void Button1_Click(object sender, EventArgs e)

        {

             InjectScript.ClosePopup(this, "CloseAndRebind('navigateToInserted')");

        }

    InjectScript class

    public static void ClosePopup(Page p, string jsFunc)
        {
            ScriptManager.RegisterStartupScript(p, p.GetType(), "CloseWindow", jsFunc, true);             
        }

     

    t

     

  2. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 01 Nov Link to this post

    Hi Sulawan,

    I believe you are using the following demo as a reference:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

    When developing your applications, temporarily disable any AJAX on the page if present (RadAjaxManager, RadAjaxPanel, UpdatePanel, etc.) and enable your script debugger (FireBug or F12) to see whether there are any script or server errors interfering, and make sure that the application works without AJAX.

    Generally, in the mentioned case, instead of posting back to the server and the calling a script method, you can directly disable the AutoPostBack property of Button1 and use its client-side click event handler to call a function and use the rebind() method of the grid master table view instance:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/client-side-programming/gridtableview-object/methods/rebind


    Regards,
    Eyup
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top