I am in the process of upgrading my application from ASP.NET Classic controls to the ASP.NET AJAX controls.
I have multiple places where I use a RadGrid inside an MS UpdatePanel - Using a Linkbutton (or a GridButtonColumn) on each row. The LinkButton fires the ItemCommand event back on the server, which in turn prepares some information in another UpdatePanel on the page and calls a ModalPopupExtender to show the second UpdatePanel as a modal box. Here is some psuedo code on how its set up...
... Aspx Page Structure ...
<UpdatePanel id=UpdatePanel1>
<RadGrid id=RadGrid1 OnItemCommand="RadGrid1_ItemCommand" >
Grid Markup
</RadGrid>
</UpdatePanel>
<UpdatePanel id=UpdatePanel2>
<ModalPopupExtender id=ModalPopupExtender1>
Page Markup
</UpdatePanel>
...code behind...
RadGrid1_ItemCommand(sender, args)
{
...format controls in UpdatePanel2 ...
UpdatePanel2.Update()
ModalPopupExtender1.Show()
}
This has been working great with the Classic RadGrid - but now with the AJAX RadGrid the ModalPopupExtender1.Show() will not display the modal box. The ItemCommand is firing just fine and the code executes as before. It just wont "Show" the popup extender. I have other modal popup extenders on the page that are displayed using the codebehind .Show() method of the extender, but are just not called from within the grid and they are working fine also.
What is different about the AJAX version of RadGrid that would make this happen? Any clues on how to resolve the issue?
Thanks... Russ
I have multiple places where I use a RadGrid inside an MS UpdatePanel - Using a Linkbutton (or a GridButtonColumn) on each row. The LinkButton fires the ItemCommand event back on the server, which in turn prepares some information in another UpdatePanel on the page and calls a ModalPopupExtender to show the second UpdatePanel as a modal box. Here is some psuedo code on how its set up...
... Aspx Page Structure ...
<UpdatePanel id=UpdatePanel1>
<RadGrid id=RadGrid1 OnItemCommand="RadGrid1_ItemCommand" >
Grid Markup
</RadGrid>
</UpdatePanel>
<UpdatePanel id=UpdatePanel2>
<ModalPopupExtender id=ModalPopupExtender1>
Page Markup
</UpdatePanel>
...code behind...
RadGrid1_ItemCommand(sender, args)
{
...format controls in UpdatePanel2 ...
UpdatePanel2.Update()
ModalPopupExtender1.Show()
}
This has been working great with the Classic RadGrid - but now with the AJAX RadGrid the ModalPopupExtender1.Show() will not display the modal box. The ItemCommand is firing just fine and the code executes as before. It just wont "Show" the popup extender. I have other modal popup extenders on the page that are displayed using the codebehind .Show() method of the extender, but are just not called from within the grid and they are working fine also.
What is different about the AJAX version of RadGrid that would make this happen? Any clues on how to resolve the issue?
Thanks... Russ