I have an issue where column alignment breaks after the 10th grid row for custom columns. There is no difference in the behaviour during page load and during consecutive file explorer updates.
The name and size columns are aligned correctly, but the custom columns are incorrectly aligned. See provided screenshot. The custom columns are added like this (server side)
I've tried to fix the issue by manually setting the column width to fix sizes on the server side, to no avail. This is done for all columns, including the standard 'name' and 'size'.
Do you have any idea what the problem is?
The name and size columns are aligned correctly, but the custom columns are incorrectly aligned. See provided screenshot. The custom columns are added like this (server side)
var createdDateColumn =
new
GridTemplateColumn
{
HeaderText = GlobalResources_Projects.FileExplorer_CreatedDate,
SortExpression =
"CreatedDate"
,
UniqueName =
"CreatedDate"
,
DataField =
"CreatedDate"
,
};
createdDateColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
fileExplorer.Grid.Columns.Add(createdDateColumn);
I've tried to fix the issue by manually setting the column width to fix sizes on the server side, to no avail. This is done for all columns, including the standard 'name' and 'size'.
GridColumn column = fileExplorer.Grid.Columns.FindByUniqueNameSafe(name);
column.HeaderStyle.Width = Unit.Pixel(width);
column.ItemStyle.Width = Unit.Pixel(width);
Do you have any idea what the problem is?