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

Filter by Date and Number

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vijhay
Top achievements
Rank 1
Vijhay asked on 28 Jun 2018, 08:30 PM

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.

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 02 Jul 2018, 10:48 AM
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.



Regards,
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.
Tags
Grid
Asked by
Vijhay
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or