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

problem with GridViewComboBoxColumnfilter property.

1 Answer 61 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.
Chetan
Top achievements
Rank 1
Chetan asked on 29 Dec 2010, 07:20 AM
Hello Telerik Team,

I am working with Telerik GridView control. There i am using GridViewComboBoxColumn, Please refer below code.

<telerik:GridViewComboBoxColumn UniqueName="FeatureName" SelectedValueMemberPath="FeatureID" DisplayMemberPath="FeatureName" IsResizable="False" DataMemberBinding="{Binding FeatureID,Mode=TwoWay}" ItemTemplate="{StaticResource FeatureComboBoxCustomTemplate}" ItemsSourceBinding="{Binding FeatureList}" HeaderCellStyle="{StaticResource CustomHeaderCellStyle}" IsReadOnlyBinding="{Binding Path=., Converter={StaticResource GridRowReadOnlyConvertor}}" ToolTipTemplate="{StaticResource FeatureToolTipTemplate}" IsCustomSortingEnabled="True" CellTemplate="{StaticResource FeatureComboBoxSelectionBoxTemplate}" Width="250" >

<telerik:GridViewComboBoxColumn.Header>
    <StackPanel Orientation="Horizontal" Width="100">
        <TextBlock Text="Feature Name" Style="{StaticResource CustomHeaderLabelStyle}" Width="80" />
        <TextBlock HorizontalAlignment="Left" Text="*" Foreground="red" Width="6"></TextBlock>
    </StackPanel>
</telerik:GridViewComboBoxColumn.Header>
<telerik:GridViewComboBoxColumn.FilteringControl>
    <telerik:FilteringControl Height="430" Width="350" ></telerik:FilteringControl>
</telerik:GridViewComboBoxColumn.FilteringControl>

</telerik:GridViewComboBoxColumn>

 



Issue is, at runtume to filter this column i am getting only feature id (please refer attached screen shot) . because column selectedvaluememberPath is featureId. As per my requirement i need to show feature Name in filter window .I can not change featureName as selectedvaluemenberpath because feature name is not unique. Kindly look into and let me know how to show feature Name in filter window.

waiting for your reply.


Thanks
Csingh

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 29 Dec 2010, 08:07 AM
Hello Chetan,

You may take a look at this blog post for a reference.
 

Regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Chetan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or