Please check this:
https://jsfiddle.net/Lv2ybnz5/1/Points to note:
1. Keep data in mm/dd/yy format i.e., deliveryDate:"12/26/2020"
2. use dateEditor function for bootstrap.
function dateEditor(ui) {
var $inp = ui.$cell.find("input"),
grid = this,
format = ui.column.format,
val = $.datepicker.formatDate(format, new Date($inp.val()));
//initialize the editor
$inp
//.attr('readonly', 'readonly')
.val(val)
.datepicker({
format: 'dd/mm/yyyy', //bootstrap format is different from jQueryUI date format.
autoclose: true
});
}
3. use editor.getData callback to convert date to "mm/dd/yy" format:
getData: function (ui) {
//convert from column format to native js date format "mm/dd/yy"
var dt = $.datepicker.parseDate(ui.column.format, ui.$cell.find("input").val());
return $.datepicker.formatDate("mm/dd/yy", dt);
}
4. use editorBlur to support bootstrap datepicker and close editor upon selection of date.
editorBlur: function(evt, ui){
var grid = this;
if( $(".datepicker").is(":visible")){
setTimeout(function(){
if( !$(".datepicker").is(":visible")){
grid.saveEditCell();
ui.$editor.blur();
}
},100)
return false;
}
},