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

Reponse.Write Not Working in RadAjaxPanel

3 Answers 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Civbaron
Top achievements
Rank 1
Civbaron asked on 25 Jan 2011, 01:42 AM
Hi,

We are trying to create a link button that will be used in a telerik grids edit template to launch a document that is stored in the database as a binary object. The issue is we have an encountered an error when the linkbutton is fired and runs the command in the item_command for the radgrid it errors out. We narrowed this down to being an issue with the response.Write so we were going to try the methods that were recommend in previous posts on this issue.

When we registered the control as a postbackcontrol with the scriptmanager it will not fire the command in the radgrids item_command method. The control is created in a seperate c# file from the radgrid and we need to know the datarow in order to pull the appropriate binary data for displaying the document.

Any help would be greatly appreciated,
Jonathan

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 27 Jan 2011, 01:04 PM
Hi Civbaron,

Can you try handling the OnRequestStart client-side event of the RadAjaxPanel and disable ajax in case the particular LinkButton is clicked.

Greetings,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Civbaron
Top achievements
Rank 1
answered on 09 Feb 2011, 05:32 PM
I have tried using the requeststart to force a post back but this does not cause the command I assigned to the but to be fired into item_command of the grid. I need it to do this so that I can grab other information about the which row was the button fired on and various other information.
0
Iana Tsolova
Telerik team
answered on 14 Feb 2011, 09:27 AM
Hi Civbaron,

Can you elaborate a bit on the approach you followed to disable ajax?
Disabling the ajax by calling the eventArgs.set_enableAjax(false); method should not affect the page functionality.

Greetings,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Civbaron
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Civbaron
Top achievements
Rank 1
Share this question
or