var $layoutcolumnselector = function (grid) { this.title = GetTextByKey("P_GRID_XXXXXX", 'Layout'); this.dialogId = 'dialog_layouts'; $("#" + this.dialogId).remove(); this.grid = grid; this.dialog = null; this.onOK = null; this.onDialogClosed = null; }; (function () { var __proto = $layoutcolumnselector.prototype; var tbdata; function initColumnsGrid(parent) { var divheader = $("
").appendTo(parent); var tbheader = $("
").appendTo(divheader); var trheader = $("").appendTo(tbheader); trheader.append(); var td = $(""); trheader.append(td); $("").appendTo(td).on('click', function (e) { tbdata.find("input[type='checkbox']:enabled").prop("checked", $(e.target).prop("checked")); }); trheader.append($("").text(GetTextByKey("P_GRID_COLUMN", "Column"))); trheader.append($("").text(GetTextByKey("P_GRID_CAPTION", "Caption"))); trheader.append($("").text(GetTextByKey("P_XXXXXX", "Width"))); var divdata = $("
").appendTo(parent); tbdata = $("
").appendTo(divdata); } function createDialog() { var dialog = $('