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

Radgrid inside asp.net modal popup problem with ajax

3 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh Bernard
Top achievements
Rank 1
Josh Bernard asked on 03 Nov 2008, 08:05 PM
I am using the modal popup extender from the ASP.NET ajax control toolkit with a radgrid nested inside that has ajax enabled. During my development I was able successfully test the ajax functionality of the radgrid inside this control. However now that I have moved it onto IIS (used integrated web server in dev) when perform any command on the grid the ajax template will show up and the grid will process however when it finishes the entire modal popup disappears. I have tested this on 2 seperate web servers and rebuilt the website several times.

Does anyone know how I might be able to debug this scenario? I am guessing that there is a problem with the javascript somewhere however I see no errors in the browser.

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 06 Nov 2008, 12:30 PM
Hello Josh Bernard,

I'm afraid that I'm not sure what may caused such behavior with the given details. I have tried to recreate the scenario in question locally but I'm unable to reproduce the behavior in question (please find the page attached).
Can you please send us little more details about the scenario and implementation. If possible, please send us (attached to a formal ticket) small working project in which this behavior can be observed, thus we will be able to gather more details and provide you more to-the-point answer.

Sincerely yours,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Josh Bernard
Top achievements
Rank 1
answered on 06 Nov 2008, 07:22 PM
I have started to get an isolated project setup to test this and if reproduced I can send to you. Before I do that I wanted to get you some additional data if it helps you.

When run on my development machine I notice a Javascript error in the status bar which I do not receive in production.
'Sys.InvalidOperationException: Two components with the same id 'ctl00_MasterContent_ModalManageSectionsPopUp' can't be added to the application.'

I dont have code that is trying to add this section twice so I would guess that the page is rendering everything during one of your ajax operations.

Modal Declaration:
<ajx:ModalPopupExtender ID="ModalManageSectionsPopUp" runat="server" BackgroundCssClass="modalBackground" 
DropShadow="true"   
CancelControlID="btnCloseSection"   
PopupControlID="pnlManageSections" 
TargetControlID="btnManageSections" RepositionMode="RepositionOnWindowResizeAndScroll" 
OnCancelScript="UserInfoControlsVisibility('false')">  
</ajx:ModalPopupExtender> 

Versions:
RadGrid.Net2.dll (4.6.2.0)
System.Web.Extensions.dll (1.0.61231.0)
AjaxControlToolkit.dll (1.0.20229.0)
0
Vlad
Telerik team
answered on 07 Nov 2008, 07:45 AM
Hello Josh,

Please turn of the grid native ajax to fix this (EnableAJAX = false). You can use RadAjaxManager for ASP.NET AJAX to ajaxify ASP.NET AJAX components.

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Josh Bernard
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Josh Bernard
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or