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

Populate filters with custom datasource

3 Answers 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brent
Top achievements
Rank 2
Brent asked on 06 Jan 2015, 03:39 PM
Hello,
 I am trying to add filters as in the attached screenshot.

 Data source for this column is a Size property, which comes in bytes, and might be from 0 bytes to several megabytes. I would like to define the filters as in the attached screen, but I did not find a way to do this.

 Can you please let me know if this can be achieved using the grid?
Thanks.
  

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 07 Jan 2015, 02:17 PM
Hello,

You can check our online documentation on how to modify the distinct values list. 
Filtering is a data operation and you cannot populate the Distinct Values with any items. Please refer to our online documentation on the basics on how the filtering works.

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.

 
0
Brent
Top achievements
Rank 2
answered on 07 Jan 2015, 03:52 PM
Hello, thank you for your answer. 
However, this is not what I am trying to do.

I am trying to add custom filters in the view (without the need to create a custom controls). So if you have a datasource with values (1,2,3,4,5,6 7,8,9,10), I would like to filter by Value<2; Value >5; Value = 3; Value < 10. How can I add this filters to the filter items list? 

Hope now is more clear than before.
Thanks




0
Dimitrina
Telerik team
answered on 08 Jan 2015, 11:08 AM
Hi,

As it turns out such a customization would not be possible unless you create a custom control based on your specific requirement. As to defining a custom filtering control, you can find the Custom Filtering Controls article.

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
GridView
Asked by
Brent
Top achievements
Rank 2
Answers by
Dimitrina
Telerik team
Brent
Top achievements
Rank 2
Share this question
or