<script type=
"text/javascript"
>
var
old = Telerik.Web.UI.GridTableView.prototype._toggleExpand;
Telerik.Web.UI.GridTableView.prototype._toggleExpand =
function
(sender, e) {
if
(!
this
._owner.ClientSettings.AllowExpandCollapse)
return
;
if
(
this
._owner._editIndexes.length > 0 && (
this
._hierarchyLoadMode ==
"Client"
||
this
._hierarchyLoadMode ==
"Conditional"
) &&
this
._data.EditMode !=
"InPlace"
) {
if
(!$find(sender.parentNode.parentNode.id)) {
this
.get_dataItems();
}
}
old.call(
this
, sender, e);
}
</script>