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

Dynamic Image

0 Answers 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Xavier
Top achievements
Rank 1
Xavier asked on 29 Feb 2012, 03:35 PM


 

 

 

Hello,
My need is very simple : in a GridViewColumn, I just want to display a small icon (accept.png) when Islocked=True.
And the code below is not working....
<
telerik:GridViewDataColumn IsReadOnly="True">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <Image Name="ImgVerrou" Source="/WpfApplication1;component/Resources/accept.png" Visibility="Collapsed"/>
                            <DataTemplate.Triggers>
                                <DataTrigger Binding="{Binding IsLocked}" Value="True">
                                    <Setter Property="Visibility" Value="Visible" TargetName="ImgVerrou"/>
                                </DataTrigger>
                            </DataTemplate.Triggers>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>


Thank you for your advice.
Xavier

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Xavier
Top achievements
Rank 1
Share this question
or