Filter by Date and Number

2 posts, 0 answers
  1. Vijhay
    Vijhay avatar
    13 posts
    Member since:
    Apr 2018

    Posted 28 Jun 2018 Link to this post

    Hi All

    I have a grid that is getting generated by means of a HTML table. I would like to know or understand how I can filter the grid data especially the Date Fields and numeric fields. I checked most of the examples, they are all based on oData data source. I did not come across any examples where date/numeric filtering is done in the grid which gets generated by means of  HTML table.

    Thank You in advance for your inputs.

    Vijhay Devarajan.

  2. Viktor Tachev
    Viktor Tachev avatar
    2497 posts

    Posted 02 Jul 2018 Link to this post

    Hello Vijhay,

    The Grid widget uses DataSource regardless of the way it is instantiated. Even if the Grid is initialized from HTML table a DataSource component will be created from the data. When filtering or sorting the data the DataSource will perform the operations. 

    In order to ensure that the records will be sorted or filtered as expected it is recommend to set the type of the data that will be displayed in the columns. This can be achieved using the data- attributes. For more details on initializing the Grid please check out the article below.

    Viktor Tachev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top