4 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 25 Jan 2012, 05:22 AM
Hello Rasheed,
Try setting "e.Canceled = true" in the UpdateCommand event.
-Shinu.
Try setting "e.Canceled = true" in the UpdateCommand event.
-Shinu.
0

Rasheed
Top achievements
Rank 1
answered on 25 Jan 2012, 12:43 PM
hi
thanks for your reply, I've tried it and i got this error
Line: 6
Error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_MainContent_ctl00_MainContent_RadGridConferences_ctl00_ctl05_TemplateDivPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.
my radgrid is RadGridConferences , ajax loading panel , rad ajax manager in this content page.
rad script managet in the master page.
thank you
thanks for your reply, I've tried it and i got this error
Line: 6
Error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_MainContent_ctl00_MainContent_RadGridConferences_ctl00_ctl05_TemplateDivPanel'. If it is being updated dynamically then it must be inside another UpdatePanel.
my radgrid is RadGridConferences , ajax loading panel , rad ajax manager in this content page.
rad script managet in the master page.
thank you
0

Rasheed
Top achievements
Rank 1
answered on 25 Jan 2012, 01:26 PM
hi, in my scenario i should tell the user that the file exists and let the popup opened to re upload another file
#region check if ConferenceNewsletterFile exists
string ConferenceNewsletterFileName = "~/Newsletters/" + RadAsyncConferenceFlashFileUpload.UploadedFiles[0].FileName;
if (File.Exists(Server.MapPath(ConferenceNewsletterFileName)))
{
RadAjaxManager.ResponseScripts.Add(@"radalert('Please change newsletter name !!', 400, 135,'newsletter exists !!');");
//e.Canceled = true;
return;
}
#endregion
thanks
#region check if ConferenceNewsletterFile exists
string ConferenceNewsletterFileName = "~/Newsletters/" + RadAsyncConferenceFlashFileUpload.UploadedFiles[0].FileName;
if (File.Exists(Server.MapPath(ConferenceNewsletterFileName)))
{
RadAjaxManager.ResponseScripts.Add(@"radalert('Please change newsletter name !!', 400, 135,'newsletter exists !!');");
//e.Canceled = true;
return;
}
#endregion
thanks
0
Hello Rasheed,
Confirm that you do not have AjaxSettings that update the grid only partially. If you want to ajaxify the control, you only need a setting in RadAjaxManager where the grid updates itself. Once you do this, try Shinu's suggestion again.
Kind regards,
Tsvetina
the Telerik team
Confirm that you do not have AjaxSettings that update the grid only partially. If you want to ajaxify the control, you only need a setting in RadAjaxManager where the grid updates itself. Once you do this, try Shinu's suggestion again.
Kind regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now