Declined
Last Updated: 14 Jun 2024 07:51 by ADMIN
anthony
Created on: 07 Jun 2024 09:32
Category: Kendo UI for Angular
Type: Bug Report
2
Issue with Filtering and Sorting in Kendo Grid with Angular

I'm experiencing an issue with the filtering and sorting functions in a Kendo Grid. This problem seems to occur with the latest version of Kendo UI for Angular in combination with Angular 18.

I have created a sample project on StackBlitz where the issue can be reproduced: StackBlitz Project.

In the example, you can see that the filtering and sorting capabilities are enabled. However, both filtering and sorting do not seem to work correctly.

Here is a relevant code snippet:

<kendo-grid [data]="gridData" [selectable]="selectableSettings" [navigable]="true" [height]="300" filterable="menu, row" [sortable]="true">
    <kendo-grid-column field="ProductName" title="Product Name"></kendo-grid-column>
    <kendo-grid-column field="UnitsInStock" title="Units In Stock"></kendo-grid-column>
    <kendo-grid-column field="UnitsOnOrder" title="Units On Order"></kendo-grid-column>
    <kendo-grid-column field="ReorderLevel" title="Reorder Level"></kendo-grid-column>
</kendo-grid>

What I have tried:

  1. I checked that the correct versions of Kendo UI and Angular are installed.
  2. I tried different settings for the filtering and sorting capabilities.
  3. I reviewed the Kendo UI documentation to ensure I didn't miss anything.

Current behavior:

  • Filtering: When I try to filter, the results are not updated correctly.
  • Sorting: Sorting does not seem to produce the correct order.

Expected behavior:

  • The grid should correctly filter and sort based on the column values.

Am I doing something wrong, or does this seem to be an issue with the Kendo UI framework? Any suggestions or solutions are welcome!

Thanks in advance for the help!

3 comments
ADMIN
Yanmario
Posted on: 14 Jun 2024 07:51

Hi Anthony,

Thank you for the additional details.

When using the kendoGridBinding directive, it encapsulates the logic for filtering, grouping, sorting, and etc. The developer wouldn't need to handle such operations when the directive is used, but if the data property is used, then all operations should be handled manually as described in our documentation:

https://www.telerik.com/kendo-angular-ui/components/grid/data-operations/

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/basics/

https://www.telerik.com/kendo-angular-ui/components/grid/filtering/manual-filtering/

https://www.telerik.com/kendo-angular-ui/components/grid/sorting/basics/

https://www.telerik.com/kendo-angular-ui/components/grid/sorting/manual-sorting/

As such this isn't considered a bug and it will be declined. For further questions regarding the built-in functionalities of the Grid, please continue the conversation in the private thread or open a separate private thread to address any further functionality questions.

Regards,
Yanmario
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
anthony
Posted on: 14 Jun 2024 07:37

Hi Yanmario,

The issue seems to occur when we perform grid data binding using [data]="gridData".
When using this, it is no longer possible to click on the grid headers to enable sorting.
Additionally, attempting to filter the data does not seem to work.

When we use [kendoGridBinding]="gridData", sorting and filtering are successful.
However, this approach cannot be implemented in our application because we utilize server-side filtering.
Adopting [kendoGridBinding] would require us to rewrite a significant portion of our application.

Regards,
Anthony

ADMIN
Yanmario
Posted on: 14 Jun 2024 07:20

Hi Anthony,

We have received a private ticket with the same contents from one of your colleagues and with the provided example the filtering and sorting were working as expected. It is possible that the changes made to the example weren't saved before sending them to us and as such I would recommend providing us with an example and steps with the issue that is being experienced.

I would also suggest continuing the conversation here to avoid confusion between both threads.

Regards,
Yanmario
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources