last item in the collection not showing

5 posts, 0 answers
  1. Tim Ge
    Tim Ge avatar
    16 posts
    Member since:
    May 2010

    Posted 10 May 2011 Link to this post

    Hi,

    I downloaded the latest internal build
    RadControls_for_WPF_40_2011_1_0510_DEV_hotfix.zip

    and the last item in my treelistview is not showing
    I noticed this when I was trying to insert items in my collection

    switched back to the 2011q1 and its fine
    but I still need the performance improvement and filter fixes from the internal build

    Cheers
  2. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 13 May 2011 Link to this post

    Hi Tim Ge,

    We have tried to reproduce the problem you are reporting, but all items in the TreeListView are shown correctly. Please, find our test application in the attached file and let us know in case of any misunderstanding. Also, you may try to modify it in a way to reproduce the issue. Thank you for your cooperation.
     
    Regards,
    Yordanka
    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Tim Ge
    Tim Ge avatar
    16 posts
    Member since:
    May 2010

    Posted 15 May 2011 Link to this post

    Hi,

    I managed to find out the part of code which is causing the problem

    basically when I have a Datatemplate assigned to celltemplate for a column
    then treelistview is not showing the last item porperly

    below is the code how I modified the sample application that you provided
    to cause the issue

    <Window x:Class="RadTreeListView_WPF.MainWindow"
            xmlns:dragAndDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
            xmlns:my="clr-namespace:RadTreeListView_WPF"
            Title="MainWindow" Height="500" Width="500">
        <Window.Resources>
            <my:Folders x:Key="Folders" />
            <DataTemplate x:Key="FirstColumnCellTemplate" >
                <StackPanel Orientation="Horizontal">
                    <Image Source="{Binding Image}" />
                    <TextBlock Text="{Binding Name}" Margin="5" />
                </StackPanel>
            </DataTemplate>
        </Window.Resources>
        <telerik:RadTreeListView  x:Name="radTreeListView" 
                                      ItemsSource="{Binding SampleFolders, Source={StaticResource Folders}}"  
                                      AutoGenerateColumns="False" ColumnWidth="200">
            <telerik:RadTreeListView.ChildTableDefinitions>
                <telerik:TreeListViewTableDefinition  ItemsSource="{Binding SubFolders}" />
            </telerik:RadTreeListView.ChildTableDefinitions>
            <telerik:RadTreeListView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" CellTemplate="{StaticResource FirstColumnCellTemplate}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Type}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding LastModified}" />
            </telerik:RadTreeListView.Columns>
        </telerik:RadTreeListView>
    </Window>
  5. Tim Ge
    Tim Ge avatar
    16 posts
    Member since:
    May 2010

    Posted 15 May 2011 Link to this post

    another thing about this internal build of treelistview control
    is that while expanding
    sometimes it clears the items in the control
    (i.e. it shows 'blank', then after a second or two
    it shows the actually content that has been expanded)

    I tried to reproduce it, but it seems a bit random
    cannot find a specific senario which will always cause that to happen



  6. Yordanka
    Admin
    Yordanka avatar
    634 posts

    Posted 16 May 2011 Link to this post

    Hi Tim Ge,

    Thank you for the details.
    We were able to reproduce the problem you are pointing. It is caused by the set Margin to the TextBlock. Removing it will show the last item correctly. Since this behavior is wrong, we will do our best to address it as soon as possible.

    According to the second issue, we couldn't reproduce it locally. Could you try the latest internal build which will be available for downloading later today? Let us know in case the "blank" items still occur. It will be of great help if you manage to isolate steps to reproduce it. Thank you in advance.

    Please, excuse us for the inconvenience. Your Telerik points have been updated accordingly.
     
    Regards,
    Yordanka
    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
Back to Top
UI for WPF is Visual Studio 2017 Ready