add jquery datetimepicker to jqxgrid column of jqwidgets

562 Views Asked by At

I want to add jquery datetimepicker to a column of jqxgrid. I tried to add by:

initeditor: function (row, cellvalue, editor) {
            editor.datetimepicker();
}

But this is not working.

Please help. Thanks in advance.

1

There are 1 best solutions below

1
On BEST ANSWER

You need to use this fuction in the column:

createeditor: function (row, cellvalue, editor) {
     editor.datetimepicker();
}

This fuction is called when you initialize the column.