Column Header and Scroll

3 posts, 1 answers
  1. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 10 Feb 2012 Link to this post

    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. Answer
    Vera
    Admin
    Vera avatar
    263 posts

    Posted 10 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 10 Feb 2012 Link to this post

    Hi Vera,

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

    Have a nice week-end.
    Regards,

    Nicolas
Back to Top