I have two questions regarding row grouping with my Kendo Grid that is being built from an existing HTML table.
First, the rows in the table are already sorted by the column to group by before the table becomes a Kendo Grid. This sorting is not ascending or descending, but is a custom sort that should never change. Here is the Kendo Grid initialization code where I group by the groupNumber column.
var grid = $("#myHTMLGrid").kendoGrid({
dataSource: {
group: {
field: "groupNumber"
}
},
});
By default, grouping the rows causes the group rows to be sorted in ascending order. Can I possibly prevent the group rows from being reordered in any way so that the table holds true to the initial ordering?
My second question is this. I need to color code the group rows based on the values of groupNumber. How can this be accomplished? Thank you.