This question is locked. New answers and comments are not allowed.
SERVER SIDE:
Java WebService running on Glassfish
Service returns a List List<host>
CLIENT SIDE:
.net 3.5 Silverlight Application
PROBLEM:
Data is returned from service and bound to items source of data grid. Listing and sorting works. Clicking the filter icon in the column header fails. Help? I feel like I'm missing something obvious.
Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.Windows.Markup.XamlParseException: AG_E_PARSER_BAD_TYPE [Line: 0 Position: 0]
| public partial class ServiceDetail : UserControl |
| { |
| MonitoringServiceClient _monitoringSvc = new MonitoringServiceClient(); |
| public ServiceDetail() |
| { |
| InitializeComponent(); |
| // Events |
| this.Loaded += new RoutedEventHandler(ServiceDetail_Loaded); |
| } |
| void ServiceDetail_Loaded(object sender, RoutedEventArgs e) |
| { |
| this._monitoringSvc.GetStatusAsync(); |
| this._monitoringSvc.GetStatusCompleted += new EventHandler<GetStatusCompletedEventArgs>(_monitoringSvc_GetStatusCompleted); |
| } |
| void _monitoringSvc_GetStatusCompleted(object sender, GetStatusCompletedEventArgs e) |
| { |
| // The monitoring service returns a List of host objects List<host> |
| // This binds and items are listed and sortable by clicking columns, but |
| // clicking the filter icon in the column header throws exception. |
| this.itemsGrid.ItemsSource = e.Result; |
| } |
| } |
| <Grid x:Name="LayoutRoot" Background="White"> |
| <StackPanel> |
| <grid:RadGridView x:Name="itemsGrid" AutoGenerateColumns="False" IsReadOnly="True" ColumnsWidthMode="Fill" CanUserFreezeColumns="True"> |
| <grid:RadGridView.Columns> |
| <grid:GridViewDataColumn Header="Host" UniqueName="hostName"/> |
| <grid:GridViewDataColumn Header="Host" UniqueName="hasBeenChecked"/> |
| <grid:GridViewDataColumn Header="Host" UniqueName="currentState"/> |
| </grid:RadGridView.Columns> |
| </grid:RadGridView> |
| </StackPanel> |
| </Grid> |