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

GridViewImageColumn Custom Filter Text and Custom Grouping Name

9 Answers 156 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Siva Jagan
Top achievements
Rank 1
Siva Jagan asked on 27 Mar 2013, 07:17 AM
Hi,

I am using GridViewImageColumn to bind the images at runtime to GridView. When I try to filer/Group this Image column, image source path is showing. I just wanted to change the Filter text.

For Example, I have a Status colun where I show Pass/Fail images. When I filter or group this column, Image source path is showing. So, here I just wanted to show Filter or group text as Pass and Fail rather than pass/fail image path.

PFA as attachment for your reference.

9 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 27 Mar 2013, 09:40 AM
Hello,

As to displaying an Image or custom text inside the Filtering Control, I would suggest you to check the attached solution in this forum thread. You could use a similar approach in your scenario.

As to changing the grouping name, you could predefine the GroupHeaderTemplate for the GridViewDataColumn as shown on the "Totals" demo available on our WPF demos

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Siva Jagan
Top achievements
Rank 1
answered on 30 Mar 2013, 05:08 PM
Hi Didie,

Thanks for your resolution.

Filtering is working fine. But Grouping is not working. Dynamically I add the GridViewImage Column to GridView as shown in below code. so, in this scenario, How can I use the GroupHeaderTemplate to change the Grouping Header name from path as I explained in previous post.

var

column = new ImageFilterColumn

 {

 

DataMemberBinding =

 

new System.Windows.Data.Binding(col.ResultNode),

ColumnGroupName = col.DispayName,

Header = col.DispayName,

IsFilterable = col.IsFilterable,

IsGroupable = col.IsGroupable,

IsSortable = col.IsSortable,

ShowFieldFilters=

false,
ImageHeight = 15.0,

 

};

gridView.Columns.Add(column);

Thanks alot for your resolution.

0
Dimitrina
Telerik team
answered on 01 Apr 2013, 06:45 AM
Hello,

Have you checked how the GroupHeaderTemplate is predefined in the demos? You should place an image in the template. 

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Siva Jagan
Top achievements
Rank 1
answered on 03 Apr 2013, 04:31 AM
Hi,

Yes I have seen couple of exaples given in WPF demo. I am clear when I want to add GroupHeaderTemplate at design time. But I am not clear when  I want to add GroupHeadertemplate at runtime.

Please share me sample code snippet, how we can add GroupHeaderTemplate to GridViewData/Image column at runtime.

Thank You,
0
Aryn
Top achievements
Rank 1
answered on 31 Jul 2014, 01:00 AM
Hello, has the code to get an image to display as a filter value in the filter window changed? I have tried getting the example solution working and the filter window is just displaying System.Windows.Controls.Image. Any help would be appreciated.

Thanks,
Aryn
0
Dimitrina
Telerik team
answered on 31 Jul 2014, 07:33 AM
Hello Aryn,

Indeed, we had this problem. The issue is resolved with 2014 Q2 SP released yesterday.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Kalli Kaldi
Top achievements
Rank 1
answered on 13 Aug 2014, 01:01 PM
Hi.

I was having the same problem.  So, I updated to the latest version of Telerk (2014.2.729.1050) but it's still the same, the filter window is just displaying "System.Windows.Controls.StackPanel".  I've tried evrything so any help would be great.

Thanks,
Kalli
0
Kalli Kaldi
Top achievements
Rank 1
answered on 13 Aug 2014, 01:06 PM
One thing I forgot to mention.  The sample solution is working fine, but it's my own solution that it not working properly.

Thanks,
Kalli
0
Dimitrina
Telerik team
answered on 13 Aug 2014, 01:21 PM
Hello,

I am not able to reproduce the issue locally. What the difference between the sample solution and your own solution is?
Would it be possible for you to isolate the issue in a demo project and send it to me? You can open a support ticket and attach it there. 

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Siva Jagan
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Siva Jagan
Top achievements
Rank 1
Aryn
Top achievements
Rank 1
Kalli Kaldi
Top achievements
Rank 1
Share this question
or