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

how to open RadGrid popup Edit template manually ?

4 Answers 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rasheed
Top achievements
Rank 1
Rasheed asked on 24 Jan 2012, 09:12 PM
hi 
i have a RadGrid, popup edit templates at insert/update i need to keep the popup opened after insert/update, how can i accomplish this?


thank you

4 Answers, 1 is accepted

Sort by
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.
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 
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 
0
Tsvetina
Telerik team
answered on 30 Jan 2012, 12:25 PM
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
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
Tags
Grid
Asked by
Rasheed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rasheed
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or