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

Bug: Expand buttons disappear in the latest internal build

4 Answers 76 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 03 Sep 2012, 11:56 AM
Hi, I just discovered a bug that affects the rendering of the Expand (arrow) buttons in the first column of RadTreeListView. This was not present in the internal build from 3 July, but is present in the two latest internal builds (23 August and 27 August). I am attaching screen shots of what it looked like previously and what it looks like now. As you can see in the screen shot with the 27 August-version, all that remains of the expansion buttons is a single pixel. They still work, but are practically invisible if you do not know they are there. Also, if I reduce the size of the first column in the data list to a minimum and then bring it back up again the problem disappears and the arrow buttons are rendered correctly again. It would be great if you could fix this in time for the next internal build.

EDIT: If it is not obvious from the screen shots, I am using the Metro theme.

I was going to attach the screen shots, but cannot find the upload functionality anymore. What happened? Anyway, here are links to the files on dropbox instead:
https://dl.dropbox.com/u/7890705/Capture_RadTreeListView_Version_2012_07_03.PNG
https://dl.dropbox.com/u/7890705/Capture_RadTreeListView_Version_2012_08_27.PNG

Thank you,
/Henrik

4 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 03 Sep 2012, 03:02 PM
Hi Henrik,


I have tried to reproduce the reported issue using our Latest Internal Build but to no avail. Attached you can find the project used for the test. Are you able to get the problem on it? Is there something I am missing? 

 
Greetings,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
hwsoderlund
Top achievements
Rank 1
answered on 04 Sep 2012, 08:12 AM
I finally managed to reproduce it. It was not nearly as easy as I thought. It seems to be a combination of more elaborate content in the first column than just text, and setting a * width on the second column. If I remove the Width property from the second column the bug does not appear.

I have removed the dlls from the .zip file, but I am still using the internal build from August 27. Also, I am using VS 2012 now, so the project is converted but should still be compatible with VS 2010. Let me know if you run into any problems running the project.

https://dl.dropbox.com/u/7890705/c5081ee2-bb92-401f-ae2a-2c032c12d404_TreeListView-SL_Modified.zip
0
Vera
Telerik team
answered on 04 Sep 2012, 12:22 PM
Hi Henrik,

 
Unfortunately, you have hit a bug in RadTreeListView. It has been logged into our Public Issue Tracking System where you can track its status.

Please excuse us for the inconvenience caused. Your Telerik points have been updated accordingly.

All the best,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Dalibor
Top achievements
Rank 1
answered on 24 Sep 2012, 07:04 AM
Hi Telerik,
I have found out similar (might be the same) problem. It can be found at at least 2 latest releases including the newest SP release.
I tried to simplify it to smallest possible code.
This code causes to disappear expandable arrow:
public partial class MainPage : UserControl
  {
     public MainPage()
     {
        InitializeComponent();
        radTreeListView.ItemsSource = WarehouseService.GetWarehouseData();
        radTreeListView.RowLoaded += radTreeListView_RowLoaded;
     }
 
     void radTreeListView_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
     {
        TreeListViewRow treeRow = e.Row as TreeListViewRow;
        if (treeRow != null)
        {
           treeRow.IsExpandable = true; // this line causes to disappear expandable arrow
        }           
     }
  }
...
public class WarehouseService
{
   public static ObservableCollection<WarehouseItem> GetWarehouseData()
   {
      ObservableCollection<WarehouseItem> data = new ObservableCollection<WarehouseItem>();
      WarehouseItem drinks = new WarehouseItem("Drinks", 35);
      WarehouseItem water = new WarehouseItem("Water", 10);
      water.Items.Add(new WarehouseItem("Fresh", 10));
      water.Items.Add(new WarehouseItem("Salty", 10));
      drinks.Items.Add(water);
      WarehouseItem tea = new WarehouseItem("Tea", 20);
      tea.Items.Add(new WarehouseItem("Black", 10));
      tea.Items.Add(new WarehouseItem("Green", 10));
      drinks.Items.Add(tea);
      drinks.Items.Add(new WarehouseItem("Coffee", 5));
      data.Add(drinks);
      WarehouseItem vegetables = new WarehouseItem("Vegeatbles", 75);
      vegetables.Items.Add(new WarehouseItem("Tomato", 40));
      vegetables.Items.Add(new WarehouseItem("Carrot", 25));
      vegetables.Items.Add(new WarehouseItem("Onion", 10));
      data.Add(vegetables);
      WarehouseItem fruits = new WarehouseItem("Fruits", 55);
      fruits.Items.Add(new WarehouseItem("Cherry", 30));
      fruits.Items.Add(new WarehouseItem("Apple", 20));
      fruits.Items.Add(new WarehouseItem("Melon", 5));
      data.Add(fruits);
      return data;
   }
}

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