I have a RadGrid in a DNN module which the first column is a GridButtonColumn called Report. If the user clicks Report button a Crystal Report is displayed on seperate window not within DNN. The user can view print or export the report.
Well this worked fine until I finally got AJAX working in DNN. I was registering a startup script after capturing in a session variable the row clicked identified. In the RadGrid ItemCommand event I identified it was the button pressed which still works but now I can not because of AJAX register a script to run. I tried just adding a function on the User Control but have not figured out how I can call this function from the ItemCommand event. I read how to do Callbacks and they act like I need...the client passes back to the server information on what was requested and them the callback fires back a function on the client with passed arguments.
function OpenReport(arg, context)
window.open(arg, "_blank","width=700, height=500, scrollbars=yes, menubar=no, resizable=1");
and the partial code behind for RadGrid ItemCommand is:
If e.CommandName = "Report" Then
Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
If dataItem("Rev").Text <> "1" Then
Dim pagePath As String = Me.ResolveUrl("Report.aspx")
Session("rptID") = dataItem("ID").Text
Session("rptRev") = dataItem("Rev").Text
????????? DO NOT KNOW HOW TO CALL FUNCTION OpenReport ???????
Can you please lead me in the right direction?