I have the following grid. When I used just a title on the first column sorting worked fine. However, the title text did not line up with the following column heading which was aligne vertically in the 'middle' of the header cell.
In the current configuration, the title is at the bottom. Clicking once moves the title to the top of the cell and puts the sort arrow graphic underneath and at the very left of the cell. Clicking again changes the direction of the sort and arrow. Clicking a third time puts the title at bottom, without the sort arrow and restores the rows to their initial order.
Can I move the graphic to the end of the title, like it was before, but all in the middle of the header cell?
Thanks,
Rick
var meetingLogGrid = $("#meetingLogGrid").kendoGrid({
dataSource: logEntryDS,
height: "100%",
width: "100%",
autoBind: false,
groupable: false,
sortable: true,
pageable: {
refresh: true,
pageSize: 5,
pageSizes: true,
buttonCount: 5
},
columns: [{
field: "Created",
// title: "Date/Time",
format: "{0: yyyy-MM-dd HH:mm}",
headerTemplate: "<
div
style
=
'vertical-align:middle;'
>Date/Time</
div
>",
width: 135
}, {
field: "LogEntry",
title: "Description",
headerTemplate: kendo.template($("#logGridTemplate").html()),
template: "<
div
style
=
'max-height:25px;overflow:hidden;'
>#: LogEntry #</
div
>",
// width: 360,
sortable: false
}, {
command: [ { name: "more", click: function (e) { console.error("log grid e: ", e);
e.preventDefault();
var tr = $(e.target).closest('tr');
var rowData = this.dataItem(tr); console.error("rowData: ", rowData);
$("#LogEntryDateTime").val(rowData.Created.toString());
$("#LogEntryText").val(rowData.LogEntry);
$("#LogEntryPopup").data("kendoWindow").open();
}}],
width:80
}],
editable: false // { mode: 'popup' },
}).data("kendoGrid");