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
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.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
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.
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.
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,
Thanks,
Aryn
Indeed, we had this problem. The issue is resolved with 2014 Q2 SP released yesterday.
Regards,
Didie
Telerik
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
Thanks,
Kalli
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