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

Open RadWindow from RadGrid using RadAjaxManager

2 Answers 162 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul Bishop
Top achievements
Rank 1
Paul Bishop asked on 15 Jan 2009, 06:04 PM
I'm trying to open a RadWindow from a RadGrid in a web user control from server-side code using the RadAjaxManager in my Master Page (this is .NET 2 and VS2005).  In the ItemCommand event of my RadGrid I'm calling the following line of code:

RadAjaxManager

.GetCurrent(this.Page).ResponseScripts.Add("radopen(null,\"dlgTest\");");

The first time I run it I get the following error:

Sys.WebForms.PageRequestManagerParserErrorException: The message received From the server could not be, parsed. Common causes for this error are when the response is modiFied by calls to Response.WriteO, response filters, HttpModules, or server trace is enabled  

Details: Error parsing near 'play:none;”>/span>|<html>

<head>

'.

Every time I select a row in the grid after cancelling this message, the dialog will load but the data does not change after the first time it loads.

Does anyone have any suggestions or sample of how I could do this?  Following is a link to a test project where I've been able to reproduce the problem:
  http://sites.google.com/site/pbbgso/Home/TelerikGridTest.zip?attredirects=0
Just click on one of the link buttons in the grid to get the error.  This is where I'd like to launch the window.

 

 

 

 

 

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Jan 2009, 07:25 PM
Hello Paul Bishop,

Please try the approach, suggested in the following KB article:
Calling radalert from codebehind (all versions of RadWindow)

Let us know whether this helps.

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul Bishop
Top achievements
Rank 1
answered on 19 Jan 2009, 10:04 PM
Hi Daniel,

Thanks for your response.  I don't normally like to make cross-posts, but I made an exception in this case.  I figured out that this issue had more to do with RadAjaxManager and Session variables, so I made another post on the Ajax forum.  Here is the link to that thread:

http://www.telerik.com/community/forums/aspnet-ajax/ajax/open-radwindow-using-radajaxmanager.aspx#722570

I'm still trying to solve it, by the way.  Any help would be greatly appreciated.
Tags
Grid
Asked by
Paul Bishop
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Paul Bishop
Top achievements
Rank 1
Share this question
or