Search code examples
datetimepickerjqxgridjqxwidgets

add jquery datetimepicker to jqxgrid column of jqwidgets


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.


Solution

  • 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.