I have a rad grid with a clientSidedelete column. The client side delete works fine, but I get an javascript error on the first time I postback if a row had been deleted.
error: control is null in code below
function ValidatorGetValue(id) {
var control;
control = document.getElementById(id);
if (typeof(control.value) == "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
What do I need to handle after the client side deletes have taken place in order to save off the data in the grid?
1/7/2011: I see the problem here, the submit button was causing validation, which was throwing the error.
error: control is null in code below
function ValidatorGetValue(id) {
var control;
control = document.getElementById(id);
if (typeof(control.value) == "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
<
telerik:RadGrid
ID
=
"rgIntervalSetup"
Width
=
"100%"
ShowStatusBar
=
"True"
AllowSorting
=
"True"
PageSize
=
"365"
GridLines
=
"None"
BorderWidth
=
"1px"
BorderStyle
=
"Solid"
BorderColor
=
"Gainsboro"
AllowPaging
=
"false"
runat
=
"server"
AutoGenerateColumns
=
"False"
MasterTableView-NoMasterRecordsText
=
""
Skin
=
"Default"
>
<
MasterTableView
TableLayout
=
"Fixed"
DataKeyNames
=
"RecordID"
AllowPaging
=
"false"
PageSize
=
"365"
ClientDataKeyNames
=
"RecordID"
AllowAutomaticDeletes
=
"True"
>
<
Columns
>
<
telerik:GridClientDeleteColumn
ItemStyle-Width
=
"16px"
ConfirmText
=
"Are you sure you want to delete this interval?"
HeaderStyle-Width
=
"15px"
ButtonType
=
"ImageButton"
ImageUrl
=
"/RMSImages/Session/delete.gif"
></
telerik:GridClientDeleteColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"RecordID"
DataField
=
"RecordID"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
What do I need to handle after the client side deletes have taken place in order to save off the data in the grid?
1/7/2011: I see the problem here, the submit button was causing validation, which was throwing the error.