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

[Solved] Error in clicking Filter Icon

4 Answers 171 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vajirani Kankanange
Top achievements
Rank 1
Vajirani Kankanange asked on 25 Jan 2010, 05:28 AM

CLIENT SIDE:
.net 3.5 Silverlight 3Application consuming WCF WebServices.

We have an issue when clicking on the filter icon in the column header. I get the following error
Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message: System.Windows.Markup.XamlParseException: AG_E_PARSER_BAD_TYPE [Line: 24 Position: 268]

I know we get this error most issues in silverlight and we are using the Telerik Controls version 2009.3.1314.1030.

Is there any other way to attach a sample app without opening a Ticket?

Any Help is appreciated.

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Jan 2010, 12:37 PM
Hello,

Attachments are allowed only support tickets. Can you verify what is on Line: 24 Position: 268?

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Vajirani Kankanange
Top achievements
Rank 1
answered on 26 Jan 2010, 09:56 PM
Hi,
I am posting the code here will highlight the specific line. I have made the line in question bold and italic. I am also goin to post the xaml.cs file.
If this doesnt help let me know I will open a ticket and attach the code.

<

 

UserControl x:Class="SilverlightRadGridView.MainPage"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

 

 

xmlns:gridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"

 

 

xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

 

 

mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

 

 

 

<Grid x:Name="LayoutRoot" Background="White">

 

 

 

<Grid>

 

 

 

<telerik:RadGridView x:Name="RadDataGridView" AutoGenerateColumns="False"

 

 

UseAlternateRowStyle="True" GridLinesVisibility="Horizontal"

 

 

IsFilteringAllowed="True" ShowGroupPanel="False">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewDataColumn Header="Metric Name" IsReadOnly="True" DataMemberBinding="{Binding MetricName}">

 

 

 

</telerik:GridViewDataColumn>

 

 

 

<telerik:GridViewDataColumn Header="MetricId" IsVisible="False" DataMemberBinding="{Binding MetricId}"/>

 

 

 

<telerik:GridViewImageColumn Header="Status" DataMemberBinding="{Binding Status}"

 

 

IsReadOnly="True" ImageStretch="None"/>

 

 

 

<telerik:GridViewDataColumn Header="Value" IsReadOnly="True" DataMemberBinding="{Binding Value}" DataFormatString="{}{0:n}" >

 

 

 

</telerik:GridViewDataColumn>

 

 

 

<telerik:GridViewDataColumn Header="SLA" DataMemberBinding="{Binding SLAT1}" IsReadOnly="True" />

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

</Grid>

 

 

 

</Grid>

 

</

 

UserControl>

 

using

 

System;

 

 

 

using

 

System.Collections.Generic;

 

 

 

using

 

System.Linq;

 

 

 

using

 

System.Net;

 

 

 

using

 

System.Windows;

 

 

 

using

 

System.Windows.Controls;

 

 

 

using

 

System.Windows.Documents;

 

 

 

using

 

System.Windows.Input;

 

 

 

using

 

System.Windows.Media;

 

 

 

using

 

System.Windows.Media.Animation;

 

 

 

using

 

System.Windows.Shapes;

 

 

 

using

 

System.Collections.ObjectModel;

 

 

 

using

 

Telerik.Windows.Controls.Charting;

 

 

 

using

 

Telerik.Windows.Controls;

 

 

 

using

 

Telerik.Windows.Controls.GridView;

 

 

 

namespace

 

SilverlightRadGridView

 

{

 

public partial class MainPage : UserControl

 

 

 

 

{

 

 

#region

 

GridDataSource (DependencyProperty)

 

 

/// <summary>

 

 

 

 

 

/// Tocllect the data

 

 

 

 

 

/// </summary>

 

 

 

 

 

public ObservableCollection<MetricValues> GridDataSource

 

{

 

get { return (ObservableCollection<MetricValues>)GetValue(GridDataSourceProperty); }

 

 

set { SetValue(GridDataSourceProperty, value); }

 

}

 

public static readonly DependencyProperty GridDataSourceProperty =

 

 

DependencyProperty.Register("GridDataSource", typeof(ObservableCollection<MetricValues>), typeof(MainPage),

 

 

new PropertyMetadata(null));

 

 

 

#endregion

 

 

 

 

public MainPage()

 

{

InitializeComponent();

GridDataSource =

new ObservableCollection<MetricValues>();

 

 

SetUpGridData();

 

}

 

private void SetUpGridData()

 

{

 

MetricValues item1 = new MetricValues { MetricId = 1, MetricName = "Test1", StatusId = 3, Value = 1.5, MonthlyGrowth = 11.6, SLAT1 = 12.5 };

 

 

MetricValues item2 = new MetricValues { MetricId = 2, MetricName = "Test2", StatusId = 2, Value = 2.5, MonthlyGrowth = 22.6, SLAT1 = 25.0 };

 

 

MetricValues item3 = new MetricValues { MetricId = 3, MetricName = "Test3", StatusId = 1, Value = 4.5, MonthlyGrowth = 33.6, SLAT1 = 37.5 };

 

GridDataSource.Add(item1);

GridDataSource.Add(item2);

GridDataSource.Add(item3);

RadDataGridView.ItemsSource = GridDataSource;

}

 

public class MetricValues

 

 

 

 

{

 

public int MetricId { get; set; }

 

 

public string MetricName { get; set; }

 

 

public int StatusId { get; set; }

 

 

public double Value { get; set; }

 

 

public double MonthlyGrowth { get; set; }

 

 

public double SLAT1 { get; set; }

 

 

public MetricValues()

 

{

}

 

public MetricValues(int pMetridId, string pMetricName, int pStatusId, double pValue, double pMonthlyGrowth, double pSLAT1)

 

{

MetricId = pMetridId;

MetricName = pMetricName;

StatusId = pStatusId;

Value = pValue;

MonthlyGrowth = pMonthlyGrowth;

SLAT1 = pSLAT1;

}

}

 

}

}

0
Accepted
Stefan Dobrev
Telerik team
answered on 01 Feb 2010, 10:19 AM
Hello Vajirani,

It is not clear from the code you have pasted what is the problem. Can you please open a support ticket and attach a sample project illustrating this issue?

Sincerely yours,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Vajirani Kankanange
Top achievements
Rank 1
answered on 02 Feb 2010, 11:31 PM
This issue was sorted when I tool the Telerik latest internal build.
Tags
GridView
Asked by
Vajirani Kankanange
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Vajirani Kankanange
Top achievements
Rank 1
Stefan Dobrev
Telerik team
Share this question
or