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

Filtering AND sorting an image only column

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 06 Jun 2011, 06:19 PM
Hi

First let me say thanks for all the help on previous questions I've posted.
Hopefully someone can help me with this too.

I have a grid which actually has a couple of columns that display only images.

Obviously the images reflect underlying settings from my data, and they are based
on enumerated values 0 to 8.

I have managed to display a combobox as my filter of choice and want to place text
in the combobox items. Eventually if I can I will display the corresponding images as well. 

So first of all what do I have to do to make filtering work.

I thought a hidden column might be the way to go and populate it with the enumerated values,
but I cann't get the grid to filter based on my combobox selection. The selection event fires
and has the correct enumeration. I used an alert to show this.

Ultimately I want to sort these items too.

I looked at one of the examples that had an image AND text, but haven't found one for an image only example yet.

TIA  

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 09 Jun 2011, 11:35 AM
Hello Tim,

Can you share the grid declaraiton?
I suggest that you implement the filtering by defining a FilterTemplate for the respective column. Then fire the filter command as if the hidden column is filtered.

For the RadComboBox, you can define its ItemTemplate as well to show the image instead of the text.

All the best,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or