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

RadGrid ImageFilter doesnt show images in header of filter

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 03 Mar 2015, 09:38 AM
Hello all,

 I am using a telerik ragdridview in my wpf view.In one of the column of telerik
radgridview i am usingGridViewImageColumn .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 :



xaml:

<img:ImageFilterColumn DataMemberBinding="{BindingDocumentStatus}"     Header="{BindingHeaderStatus}"         ImageStretch="None"          ShowFieldFilters="False" /><br>

code behind:

PublicClass ImageFilterColumn    Inherits GridViewImageColumn
<
br><br>e<br><br>ProtectedOverridesReadOnlyProperty FilteringDisplayFunc() As Func(OfObject, Object)     
      GetReturnAddressOf ImageFilterColumn.ConvertUriStringToImage        
   EndGetEndProperty       
 PublicSharedFunction ConvertUriStringToImage(uriString AsObject) AsObject
Dim image As Image = New Image()          
image.Source = New BitmapImage(New Uri(uriString.ToString()))    
       Return image    
    EndFunction
EndClass<
br>

please
suggest what to do to get the icons in filtering also.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 05 Mar 2015, 01:28 PM
Hello,

As it turns out, I am not able to reproduce the issue based on the provided information. You can find attached my test solution, it would be great if you can modify it to replicate the exact problem and send it to us. That way we will be able to advise further.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Srinivas
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or