3
« on: December 27, 2013, 01:03:06 pm »
Hi ,
I am using custom editing grid section from the demos, i am using dropDownEditor, i found that there is one function
var dropDownEditor = function (ui, arr) {
debugger;
var $cell = ui.$cell, data = ui.data, rowIndx = ui.rowIndxPage, colIndx = ui.colIndx;
var dataCell = $.trim(data[rowIndx][colIndx]);
var str = "";
for (var i = 0; i < arr.length; i++) {
if (dataCell == arr)
str += "<option selected>" + arr + "</option>";
else str += "<option>" + arr + "</option>";
}
var $sel = $("<select>" + str + "</select>")
.appendTo($cell);
}
from where does "ui" parameter be passed , i am seeing it shows undefined.
i have kept in body of my html page as <div id="grid_custom_editing" style="width: 100%;"></div>.
please let me know what ui will contain.
Regards,
Lalit Singh