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

RadConfirm in Edit Mode Freezes Screen

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 1
Michele asked on 29 Mar 2016, 01:53 PM

Hello,

Using a radGrid, when I go into Add Mode programmatically, using "IsItemInserted = true" in PreRender, then call RadConfirm in the InsertCommand code, the confirm question pops up, but the page freezes.  I cannot answer "ok" or "cancel." The JavaScript is never invoked.  There is no way forward or backward, the page remains frozen on the popup question.

 

CODE IN PRERENDER:

protected void rgContract_PreRender(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{

string addFlag = Request.QueryString["addmode"];
if (addFlag == "true")
{
rgContract.MasterTableView.IsItemInserted = true;
rgContract.Rebind();
}
else
{
Session["lastClientAdded"] = null;
}

}
}

 

CODE FROM INSERCOMMAND:

protected void rgContract_InsertCommand(object source, GridCommandEventArgs e)

{

                   windowManagerContract.RadConfirm("Would you like to set up a new Account for this Contract?", "confirmCallBackFn", 350, 200, null, "Please confirm");

}

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 01 Apr 2016, 08:50 AM
Hi Michele,

Please 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.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Michele
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or