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

FilterMemberType GridView

3 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nuno Oliveira
Top achievements
Rank 1
Nuno Oliveira asked on 14 Aug 2012, 04:07 PM
Hi,

When a try to assign a System.String to the FilterMemberType property of a GridViewComboBoxColumn, at runtime it throws the following exception: Failed to create a 'System.Type' from the text 'System.String'

What am I doing wrong?


Thanks in advance,

Nuno

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 15 Aug 2012, 05:38 AM
Hi Nuno,

 May I ask you to share how exactly do you assign the FilterMemberType

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nuno Oliveira
Top achievements
Rank 1
answered on 15 Aug 2012, 10:03 PM
Hi Didie,

I just realized I didn't tell that the assignment was in Xaml. Here's how I'm doing it:

<telerik:GridViewComboBoxColumn Width="Auto"
                                                        ItemsSourceBinding="{Binding PosicoesPautais, Source={StaticResource RelatedTablesKey} }"
                                                        DisplayMemberPath="Codigo"
                                                        SelectedValueMemberPath="ID"
                                                        IsComboBoxEditable="True"
                                                        IsSortable="True"
                                                        IsFilterable="True"
                                                        FilterMemberPath="Codigo"
                                                        FilterMemberType="System.String"
                                                        DataMemberBinding="{Binding PosicaoPautalID, Mode=TwoWay}"
                                                        Header="Posição Pautal">
                            <telerik:GridViewComboBoxColumn.EditorStyle>
                                <Style TargetType="telerik:RadComboBox">
                                    <Setter Property="IsReadOnly"
                                            Value="True" />
                                </Style>
                            </telerik:GridViewComboBoxColumn.EditorStyle>
                        </telerik:GridViewComboBoxColumn>


Thanks,
Nuno
0
Dimitrina
Telerik team
answered on 16 Aug 2012, 07:41 AM
Hi,

 You should specify a Type, not s String. Please check the general forums to learn how to set a system type in Xaml.

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Nuno Oliveira
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Nuno Oliveira
Top achievements
Rank 1
Share this question
or