Hi,
We have a XamGrid (version 10.3.20103.1006) on a page that is bound to an Observable collection. The data is hierarchical and so the grid has three ColumnLayout levels. Some of the ColumnLayout columns are UnboundColumn types and use converters. We have a refresh button on the same page as the grid that when clicked executes a method on the ViewModel to call a WCF service and reset the exposed Observable collection.
The Observable collection property on the ViewModel is as follows:
public ObservableCollection<ServiceActivityData> Activities{get { return _activities; }set{ if (_activities != value) { _activities = value; base.RaisePropertyChanged("Activities"); }}
Now the problem is that the Unbound columns on the grid do not reflect changes to the data after a refresh. Here are the first few lines from one of our converters used by one of the unbound columns:public class LogStatusImageSourceConverter : IValueConverter{public object Convert(object value, Type targetType, object parameter, CultureInfo culture){ UnboundColumnDataContext ty = (UnboundColumnDataContext)value; TransferLogData tl = (TransferLogData)ty.RowData;
The converter fires after a refresh but the data in RowData is not getting updated and doesn't correspond to the new data in the underlying ObservableCollection.
What is happening here? How can I force the RowData to keep in sync with the underlying ItemSource of the grid?
Regards,
Myles
Yes this appears to have fixed it although now I have another question/issue. My grid is hierarchical and has three levels. I want to persist the expanded levels during a refresh e.g. If I have expanded down to the third level on the first row then I want this visual state to remain after the underlying Itemsource is refreshed. At the moment the grid gets reinitialised after a refresh and all previously expanded levels are collapsed. I've tried using the Infragistics persistence framework but keep getting loads of errors when I try to load the grid state back. Maybe I should create a new thread for this?
Will let you know soon.
Hello,
Did the service release resolve your issue?
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support
hi,
As far as I can see, you are using the RTM version of 2010.3. It was released almost a year ago. The latest Service Release contains fixes in all components and features, including the Unbound Column of the XamGrid.
To get the latest Service Release, please visit My IG > My Keys and Downloads.
Regards