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

RadGrid gridbuttoncolumn event handling problem

1 Answer 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tomislav
Top achievements
Rank 1
Tomislav asked on 31 Oct 2008, 04:06 PM
Hi.

I have a RadGridButton column

<

telerik:GridButtonColumn CommandName="print" Text="Print" UniqueName="Print" ButtonType="PushButton">

 

 

</telerik:GridButtonColumn>

 

and in event handling of the Command I want to do this:

void

RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == "print")

 

{

 

.
.
.
System.Diagnostics.
Process.Start(Server.MapPath("App_data\\print.doc"));
}


Problem is that Word document won't open.

I put a test button on the same ASP page(outside of RadGrid) and handled Click event with calling to System.diagnostic.process.start as above. It works and opens Word document. So  The question is: why RadGrid button cannot handle call to open word document?

Thank you in advance

 

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 03 Nov 2008, 04:25 PM
Hi Tomislav,

Could you please tell us more about your scenario? Is your grid ajaxified? Any further information could be of help.

Best wishes,
Iana
the Telerik team

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