Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I am using a telerik ragdridview in my wpf view.In one of the column of telerik radgridview i am using GridViewImageColumn .once the document in one grid column loads successfully the image column will show success icon else failure icon.But the problem is after completing of this process once i clik on filtering icon (top of rad grid) of the image column text is showing as "System.Window.Control.Images" instead of icon symbols.
I had overrideen the FilteringDisplayFunc of GridViewImageColumn..My code is

CSS
<img:ImageFilterColumn DataMemberBinding="{Binding DocumentStatus}"
                                                     Header="{Binding HeaderStatus}"
                                                     ImageStretch="None"
                                                     ShowFieldFilters="False" />




VB
Public Class ImageFilterColumn
        Inherits GridViewImageColumn

VB
Protected Overrides ReadOnly Property FilteringDisplayFunc() As Func(Of Object, Object)
           Get
               Return AddressOf ImageFilterColumn.ConvertUriStringToImage
           End Get
       End Property

       Public Shared Function ConvertUriStringToImage(uriString As Object) As Object
           Dim image As Image = New Image()
           image.Source = New BitmapImage(New Uri(uriString.ToString()))
           Return image

       End Function
   End Class


Please let me know what to do?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900