Populate filters with custom datasource

4 posts, 0 answers
  1. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 06 Jan 2015 Link to this post

    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.
      
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 07 Jan 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. Brent
    Brent avatar
    33 posts
    Member since:
    Jun 2010

    Posted 07 Jan 2015 in reply to Dimitrina Link to this post

    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




  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 08 Jan 2015 Link to this post

    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.

     
Back to Top