Ia m trying to open a window when there is an excetion raised. Per the documentation you can add a control to the bottom of the grid but this is not user friendly and hardly visible in the example:
I can open the window on the client side and set the public variable but can't actually get that value to the client.
******
So I have the public variable for my class:
Protected Sub RadGrid1_ItemUpdated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridUpdatedEventArgs) Handles RadGrid1.ItemUpdated
If Not e.Exception Is Nothing Then
e.KeepInEditMode = True
e.ExceptionHandled = True
ERR_DESC = e.Exception.Message.ToString
End If
End Sub
*****
On the client ERR_DESC has the e.Exception.Message.ToString value when it's binding the server side code to the client-side variable but when the client is written the variable is an empty string.
What am I missing here??
I can open the window on the client side and set the public variable but can't actually get that value to the client.
******
So I have the public variable for my class:
Public
ERR_DESC As String = ""
And set this on the Itemupdate() event:
Protected Sub RadGrid1_ItemUpdated(ByVal source As Object, ByVal e As Telerik.Web.UI.GridUpdatedEventArgs) Handles RadGrid1.ItemUpdated
If Not e.Exception Is Nothing Then
e.KeepInEditMode = True
e.ExceptionHandled = True
ERR_DESC = e.Exception.Message.ToString
End If
End Sub
*****
On the client ERR_DESC has the e.Exception.Message.ToString value when it's binding the server side code to the client-side variable but when the client is written the variable is an empty string.
Sys.Application.add_load(applicationLoadHandler);
function applicationLoadHandler() {
debugger;
var ERR_DESC='<%=ERR_DESC%>';
if (ERR_DESC!='') {
var oWnd = radopen("RTS_Message_Window.aspx?message="+ERR_DESC+"&title=Problem Running Report" , "RadWindow1" );
oWnd.setSize (300, 200);
oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close);
}
}
What am I missing here??