IsVirtualizing and PreservePositionWhenMaximized issue

3 posts, 0 answers
  1. Ryan
    Ryan avatar
    2 posts
    Member since:
    Sep 2013

    Posted 21 Aug 2014 Link to this post

    I am having an issue when I have both IsVirtualizing and PreservePositionWhenMaximized set to true.

    Here is the window code.
    <Window x:Class="TileTest.MainWindow"
            Title="MainWindow" Height="350" Width="525"
            <DataTemplate x:Key="ItemTemplate">
                <TextBlock Text="{Binding}" />
            <DataTemplate x:Key="ContentTemplate">
                        <TextBlock Text="small" />
                        <TextBlock Text="default" />
                        <TextBlock Text="large" />
            <telerik:RadTileView x:Name="radTileView"
                                 ContentTemplate="{StaticResource ContentTemplate}"
                                 ItemTemplate="{StaticResource ItemTemplate}"

    Here is the code behind.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Windows;
    namespace TileTest
        public partial class MainWindow : Window
            public MainWindow()
                var data = new List<string>();
                foreach (var num in Enumerable.Range(1, 12))
                    data.Add(String.Format("Item {0}", num));
                this.radTileView.ItemsSource = data;       

    This gives a view with 12 items.  If I double click the header of "item 1", it will maximize.  If I scroll down to "item 12"
     and double click it, it will maximize and the scroll possition will change slightly. If I scroll to the top of the small list, "item 1" is gone.  If I restore "item 12" (all items normal size), "item 1" reappears.

    If I set either the IsVirtualizing or PreservePositionWhenMaximized to false, the items do not "disappear".  PreservePositionWhenMaximized needs to be true for our impementaion and disabling virualization is less than ideal.

    Any ideas?


  2. Ryan
    Ryan avatar
    2 posts
    Member since:
    Sep 2013

    Posted 21 Aug 2014 in reply to Ryan Link to this post

    I forgot to mention - I am running 2014.2.617.40. I downloaded 2014.2.818.40 and saw the same behavior.
  3. DevCraft R3 2016 release webinar banner
  4. Zarko
    Zarko avatar
    755 posts

    Posted 22 Aug 2014 Link to this post

    Hello Ryan,
    Thank you for the feedback. It really seems like a bug and I logged it in our feedback portal where you'll be able to track its progress. You've already found the possible workarounds and unfortunately I can't give you another one.
    I've updated your Telerik account and if you have further questions please feel free to ask.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top