UXGridView - Silverlight - Column Footers Disappear until column header clicked

4 replies. Last post: November 24, 2014 2:46 AM by Yudi
Tags :

Scenario: UXGridView tied to a PagedCollectionView

When the PagedCollectionView is tied to an underlying <ObservableCollection>, and the collection is cleared and re-loaded, the UXGridView entirely loses the column footers and they become blank.

  • Column Footers are perfect on initial entry, no issues there
  • Clicking on a column header to sort the UXGridView causes the footers to re-appear

Is there a trick to not losing the footers in this situation, or a setting that I'm missing? I've tried doing a PagedCollectionView.Refresh() to no avail, and can't seem to have the footers just stay in place and get updated like they do on initial display. 

All Replies

Yudi Member

Apologize for the delay in sending this.

I created a simple project of UXGridView based on your description.

  • The ItemsSource property of UXGridView is bound to PagedCollectionView;
  • PagedCollectionView is tied to an ObservableCollection.

..., and the collection is cleared and re-loaded, the UXGridView entirely loses the column footers and they become blank.

Could you please kindly modify my sample by applying "cleared and re-loaded" until reproduce the reported problem. Please send back the modified sample to us to be investigated further.

Yudi,


See attached for an updated sample that exhibits this behavior. 

Basically, implemented a command that does a .Clear(); and then adds new elements to the collection. Cells update fine, the footers however go blank as initially reported.

Let me know if you need anything else.

Any thoughts on this one yet Yudi? Just wanted to follow up
Yudi Member

Apologize for the delay in sending this.

I made a minor modification to the UXGridViewObservCollStruct Modified.zip file. The modifications are made on the UXPage1ViewModel.cs.

On the UpdateData() method, after clear-ing the existing data I created a new collection of MyData and assign this data to GridDatafin.

ObservableCollection data = new ObservableCollection();
data.Add(new MyData { keyword = "keyword10", sources = "sources10", TestVal = 10 });
data.Add(new MyData { keyword = "keyword11", sources = "sources11", TestVal = 11 });
data.Add(new MyData { keyword = "keyword12", sources = "sources12", TestVal = 12 });
...
data.Add(new MyData { keyword = "keyword19", sources = "sources19", TestVal = 19 });

this.GridDatafin = data;

For more detail, please check the attached UXPage1ViewModel.cs file. Feel free to let us know if you have different result.

All times are GMT -5. The time now is 2:32 AM.
Previous Next