Fromdate : "From Date",
minWidth:200,
width : '25%',
dataType : "String",
align : "center",
dataIndx : "from_date",
halign : "center",
editable : false,
sortable : false,
render : function(ui) {
var data = $("#hire_rate").pqGrid('option','dataModel.data');
var rowIndx = ui.rowIndx;
var rowData = ui.rowData;
var value=data.length;
var cellData = rowData["from_date"];
return '<div class="form-group" style="margin-left:50px;text-align:center;"><div class="input-group date" id="datetimepicker'+rowIndx+'"><input type="text" class="form-control" value="'+data[rowIndx].from_date+'" id="fromdate'+rowIndx+'" ><span class="input-group-addon"><span class="glyphicon-calendar glyphicon"></span></span></div></div>' ;
}
This is my "From Date" column. Here only I have written my datetimepicker code. In "Editor" function i can't able to write div tag. Thats why i am writing in render function. Is any other way to resolve this issue?