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

Column Header and Scroll

2 Answers 58 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
AKROS
Top achievements
Rank 1
AKROS asked on 10 Feb 2012, 05:31 PM
Hello Telerik Team,

I'm using a TreeListView (internal build v.2011.3.1406.1040) with column headers. When the user is scrolling (horizontally), the column headers are not synchronized with the columns of the grid. Note that clicking on the scrollbar arrow buttons (left or right) works as expected.

For information, I have three frozen columns, and the others are created dynamically. Here is a part of the code I use to create the columns and the headers.

int counter = 0;
DataTemplate template = this.Resources["monthCalendar"] as DataTemplate;
// Group by weeks in months
IEnumerable<IGrouping<string, Week>> months = this.Period.Weeks.GroupBy(w => w.FirstDateOfWeek.ToString("MM.yyyy"));
foreach (IGrouping<string, Week> month in months)
{
foreach (Week week in month)
{
GridViewColumn column = this.CreateColumn(week, month.Key, counter, "Days");
this._dynamicColumns.Add(column);
this.treeListView.Columns.Add(column);
counter++;
}
Period monthPeriod = new Period(month.ToList()) { OfficialHolidays = this.Period.OfficialHolidays };
GridViewColumnGroup calendarGroup = new GridViewColumnGroup { Name = month.Key, Header = monthPeriod, HeaderTemplate = template };
this.treeListView.ColumnGroups.Add(calendarGroup);
}


As attachment to this message, you will find a small screen shot of the problem...
Thanks in advance for a response !

Greetings,
Nicolas

2 Answers, 1 is accepted

Sort by
0
Accepted
Vera
Telerik team
answered on 10 Feb 2012, 05:52 PM
Hello Nicolas,

This issue has already been resolved and the fix for it will be part of our next Internal Build (Monday) and our official Q1 2012 expected till the end of the next week.

Regards,
Vera
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
AKROS
Top achievements
Rank 1
answered on 10 Feb 2012, 06:36 PM
Hi Vera,

Thank you for your fast answer.
I will download the new release on Monday :)

Have a nice week-end.
Regards,

Nicolas
Tags
TreeListView
Asked by
AKROS
Top achievements
Rank 1
Answers by
Vera
Telerik team
AKROS
Top achievements
Rank 1
Share this question
or