This question is locked. New answers and comments are not allowed.
Hi,
If column virtualization is disabled, and I add columns to the grid with IsVisible set to false, making them visible later doesn't work (for example, if I make the column visible when a button is clicked). If there is at least one column that is visible when it is added, then it works correctly.
If column virtualization is enabled, then making the column visible makes the column header appear correctly, but the data isn't populated. If I do an operation with the column, like sort or group, then the data appears.
I've tested both the most recent release Q3 2010 SP1 and the latest internal build (2010.3.1326.1040).
If column virtualization is disabled, and I add columns to the grid with IsVisible set to false, making them visible later doesn't work (for example, if I make the column visible when a button is clicked). If there is at least one column that is visible when it is added, then it works correctly.
If column virtualization is enabled, then making the column visible makes the column header appear correctly, but the data isn't populated. If I do an operation with the column, like sort or group, then the data appears.
I've tested both the most recent release Q3 2010 SP1 and the latest internal build (2010.3.1326.1040).
8 Answers, 1 is accepted
0
John
Top achievements
Rank 1
answered on 28 Jan 2011, 11:08 AM
Hi,
Yeah, this is a bug with the latest release. There is another post in the forum that shows that they are aware of it and were working on a fix that would show up in the latest internal build. It may be it hasn't been applied yet.
John
Yeah, this is a bug with the latest release. There is another post in the forum that shows that they are aware of it and were working on a fix that would show up in the latest internal build. It may be it hasn't been applied yet.
John
0
Brian Lam
Top achievements
Rank 1
answered on 28 Jan 2011, 03:16 PM
John - are you talking about this thread? If so, then that is a related but different issue. That issue has been fixed in the latest internal build; I've tested it and you can see it listed in the release notes for that version (3rd to last bullet under RadGrid).
The issue I'm talking about is when you add columns that are all initially not visible, then updating their IsVisible property doesn't have any effect. The issue they fixed was when you added columns that were initially visible.
The issue I'm talking about is when you add columns that are all initially not visible, then updating their IsVisible property doesn't have any effect. The issue they fixed was when you added columns that were initially visible.
0
Hi guys,
The fix did not make it into the latest internal build but I believe that the next one should have it.
Kind regards,
Veselin Vasilev
the Telerik team
The fix did not make it into the latest internal build but I believe that the next one should have it.
Kind regards,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Hello guys,
I am happy to tell you that the problem is already fixed in our latest internal build (2010.3.1331). Please download it from your accounts and try it.
Regards,
Veselin Vasilev
the Telerik team
I am happy to tell you that the problem is already fixed in our latest internal build (2010.3.1331). Please download it from your accounts and try it.
Regards,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Brian Lam
Top achievements
Rank 1
answered on 01 Feb 2011, 04:29 PM
Hi Veselin,
I just tested my sample application with the new internal build, but it's still broken. Here's the code I test with (the XAML basically just contains a checkbox and a RadGridView):
Checking the checkbox doesn't make the column visible. Let me know if you need me to send you the full solution to test with.
I just tested my sample application with the new internal build, but it's still broken. Here's the code I test with (the XAML basically just contains a checkbox and a RadGridView):
public MainPage() { InitializeComponent(); // turn off column virtualization, and don't autogenerate the columns GridView.EnableColumnVirtualization = false; GridView.AutoGenerateColumns = false; // populate the grid with some dummy data var dummyData = new List<int>(); for (var i = 0; i < 100; i++) { dummyData.Add(i); } GridView.ItemsSource = dummyData; // add a column that is not visible by default GridView.Columns.Add(new GridViewDataColumn { Header = "Int Value", DataMemberBinding = new Binding(), IsVisible = false }); // bind a checkbox to the column's visibility ColumnVisibleCheckbox.SetBinding(CheckBox.IsCheckedProperty, new Binding("IsVisible"){Mode = BindingMode.TwoWay, Source = GridView.Columns[0]}); }Checking the checkbox doesn't make the column visible. Let me know if you need me to send you the full solution to test with.
0
Hi Brian Lam,
It seems this problem manifests only when there is only one column, which is added in code and is invisible by default. Does your real scenario look like this?
I could not reproduce it in any other scenario.
We will investigate the case further.
All the best,
Veselin Vasilev
the Telerik team
It seems this problem manifests only when there is only one column, which is added in code and is invisible by default. Does your real scenario look like this?
I could not reproduce it in any other scenario.
We will investigate the case further.
All the best,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Brian Lam
Top achievements
Rank 1
answered on 02 Feb 2011, 03:36 PM
My real application has a similar lifecycle, but is more complicated. We create a column for each field that is available on the entity that the grid is bound to, but they are all added as invisible by default. The column settings, which specify what columns should be visible, are loaded asynchronously, so the columns aren't visible until this point.
I just tested the sample application with multiple columns, and the bug still happens if they are all invisible by default.
I just tested the sample application with multiple columns, and the bug still happens if they are all invisible by default.
0
Hello Brian Lam,
I have logged this problem as another bug and you can track its progress here.
Please excuse us for the inconvenience.
Best wishes,
Veselin Vasilev
the Telerik team
I have logged this problem as another bug and you can track its progress here.
Please excuse us for the inconvenience.
Best wishes,
Veselin Vasilev
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>