Hi Team,
Your updation like,
=========================================
Editor (v8.4.0)
In previous versions, custom editors could be created in column.type callback.
In current version (v8.4.0), column.type callback is reserved for specifying the type of editor only. Specifically ui.$cell is undefined inside the editor.type callback.
Rather column.init callback can be used for creating custom editors.
=================================================
Our code like below,
editor: {
type: function (ui) {
var ControlTypeId = ui.rowData["ControlTypeID"];
var IsAbstract = ui.rowData["IsAbstract"];
var ElementType = ui.rowData["ElementType"];
var ElementID = ui.rowData["id"];
if (ControlTypeId == "2" && ElementType == "xbrli:booleanItemType") {
var str = "";
str = "<select class='pq-editor-focus pq-cell-editor' name='Name' style='min-width: 245px; max-width: 722px; max-height: 319px; width: 245px;'>";
str += "<option value='Yes'>Yes</option>";
str += "<option value='No'>No</option>";
str += "</select>";
ui.$cell.append(str); // Issue with this line=============================================
}
if (ElementType == "xbrli:dateItemType") {
var $cell = ui.$cell,
rowData = ui.rowData,
dataIndx = ui.dataIndx,
cls = ui.cls,
dc = $.trim(rowData[dataIndx]);
ui.$cell.css('padding', '0'); // Issue with this line=============================================
}
}
++++++++++++++++++++++++++++++++
We are not able to understand what should we have to put instead of "ui.$cell.append(str); " code for dropdown and "ui.$cell.css('padding', '0');" for Datepicker
Kindly give us a demo so we can implement ASAP