javascript - angular error not sure why its happening -
- i new js , anguar 2
- i getting below error when move 3 dots in grid.
- can tell me how fix it.
providing whole code in fiddle , relevant code below.
this.sportsdata.lockcolumn(laptop);
typeerror: cannot read property 'locked' of undefined @ init.reordercolumn (kendo.all.min.js:49) @ init.lockcolumn (kendo.all.min.js:49) @ swimmingdocuments.lockkgridcolumns (ball-bat.ts:863) @ swimmingdocuments.collectuserdraggedcolumns (ball-bat.ts:847) @ htmldocument.eval (ball-bat.ts:811) @ htmldocument.dispatch (jquery-2.2.3.js:4737) @ htmldocument.elemdata.handle (jquery-2.2.3.js:4549) @ zonedelegate.invoketask (zone.js:236) @ object.oninvoketask (core.umd.js:6233) @ zonedelegate.invoketask (zone.js:235) gym(remote, running): void { if (remote.length <= 0) { return; } this.sportsdata = $('#' + running).data("kendogrid"); let jump = $('#' + running + ' .k-grid-header > div > table > thead > tr:first-child > th'); let high = jump.length; (let = 0; < high; i++) { let laptop = jump.eq(i).attr('data-field'); let bed = typeof laptop; if (bed == "string" && laptop != undefined) { if (($.inarray(laptop, remote) !== -1 && jump.eq(i).css('display') != 'none') || laptop == 'locksetcolumn' || laptop == 'contextrow') { this.sportsdata.lockcolumn(laptop); } else { this.sportsdata.unlockcolumn(laptop); } } }
Comments
Post a Comment