Unplanned
Last Updated: 20 Mar 2019 15:45 by ADMIN
Odd Dahm
Created on: 26 Feb 2019 08:43
Category: Grid
Type: Bug Report
1
Cannot read property 'get_isInEditMode' of null
RadGrid with Hierarchical structure throws the error when an item is expanding while it's in edit mode and the Table's HierarchyLoadMode is set to Client.
1 comment
ADMIN
Attila Antal
Posted on: 26 Feb 2019 08:50
To work around the issue, add the following JavaScript method to the page where the grid is located.

<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>