Hi, the new feauture Merge Cells is very nice but the alignment is only at the center.
Can I align the merged cells in the same mode of the column?
Thanks, Fabrizio
Hi,
The feedback item will be closed as the required behavior can be achieved using custom code.
Regards,
Dinko | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hello fabrizio,
Thank you for your interest in one of RadGridView's newest functionalities.
By default, the merge cell text is positioned at the center. If you want to change the position of the text, you can subscribe to the ViewCellFormatting event. In the event handler, you can check the incoming cell type for GridMergeCellElement and change the TextAlignment property to the desired value.
private void RadGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.CellElement is GridMergeCellElement mergeCell)
{
mergeCell.TextAlignment = ContentAlignment.MiddleLeft;
}
}
I hope that this information is helpful.
Regards,
Dinko | Tech Support Engineer
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.