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

image column sorting

1 Answer 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
iramz
Top achievements
Rank 1
iramz asked on 06 Apr 2010, 04:21 AM
hello,

i have a gridview with an image column like this.

 

<telerikGridView:GridViewDataColumn HeaderTextAlignment="Left" Header="Status" Width="55" IsResizable="False" IsGroupable="True" IsFilterable="False">  
                                                <telerikGridView:GridViewDataColumn.CellTemplate> 
                                                    <DataTemplate> 
                                                        <Grid> 
                                                            <Image Source="{Binding TaskStateImage}" HorizontalAlignment="Center" Width="16" Height="16"/>  
                                                        </Grid> 
                                                    </DataTemplate> 
                                                </telerikGridView:GridViewDataColumn.CellTemplate> 
                                            </telerikGridView:GridViewDataColumn> 

 

 

 

 


i want to make it sortable based on TaskStateImage, how do i do so?

thank you very much!

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 06 Apr 2010, 07:44 AM
Hi iramz,

You can set DataMemberBinding property to use desired property name.

Sincerely yours,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
iramz
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or