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

can not close and rebind on safari

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sulawan
Top achievements
Rank 1
sulawan asked on 27 Oct 2016, 06:55 PM

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

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 Nov 2016, 01:47 PM
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.
Tags
Grid
Asked by
sulawan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or