Greetings,
Im trying to send multiple selected values from a radgrid, which is on a radwindow (acting as a dialogue). I can successfully send values that are in textboxes and comboboxes but the problem is when the code reaches a point where its supposed to send values from the radgrid. I get the NULL OBJECT ERROR. I have tried using Sys.application.add_load to noavail.
This is the function that im using to retrieve the selected values on the radgrid.
Im calling this function when a user clicks OK button:
Thanks in advance
Im trying to send multiple selected values from a radgrid, which is on a radwindow (acting as a dialogue). I can successfully send values that are in textboxes and comboboxes but the problem is when the code reaches a point where its supposed to send values from the radgrid. I get the NULL OBJECT ERROR. I have tried using Sys.application.add_load to noavail.
This is the function that im using to retrieve the selected values on the radgrid.
function
returnToParent() {
//create the argument that will be returned to the parent page
var
oArg =
new
Object();
//THE NULL OBJECT ERROR IS ON THIS LINE
var
gridView = $find(
"<%= RdGRoles.ClientID %>"
).get_masterTableView();
oArg.selGroup = gridView.get_selectedItems();
//get a reference to the current RadWindow
var
oWnd = GetRadWindow();
oWnd.close(oArg);
}
Im calling this function when a user clicks OK button:
Protected
Sub
btnOk_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
btnOk.Click
ClientScript.RegisterStartupScript(Page.
GetType
(),
"mykey"
,
"returnToParent();"
,
True
)
End
Sub
Thanks in advance