This is a migrated thread and some comments may be shown as answers.

Column alignment breaks for custom columns

1 Answer 46 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 01 Nov 2010, 02:34 PM
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)

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?

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 03 Nov 2010, 12:50 PM
Hello Andreas,

We are aware of such problem in the earlier version of the RadGrid control (the RadFileExplorer uses RadGrid in its right panel) but it is already fixed. Could you please update to the recent version and you should not experience the same problem?
In case that the update do not help, could you please rework my test project in order to show the issue, open a new support ticket and send it back? I will check it and do my best to provide a working solution as soon as possible.

Kind regards,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
FileExplorer
Asked by
Andreas
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or