Rows with child rows (merged rows): how to extend or bypass result by Filter/Clear/Sort buttons

1 Answer 45 Views
Filter Grid Sortable
George
Top achievements
Rank 2
Iron
Iron
Iron
George asked on 25 Jul 2023, 02:55 PM

Hi,

Thank you for your answer to my merged rows question previously. Now I have the problem of getting the grid contents to sustain the format if I use Filter, Clear buttons in the Filter pop up or Sort. Example:

 

After setting the filter say for "Equals"  John Smith I get:

Buuuut. I really want:

Is there a way to "bypass" or extend the function where I could use the same implementation to restructure the rows like the above.

javascript - Does Kendo Grid support cell merge or not? - Stack Overflow

I think maybe I could create a listener to catch the Filter/Clear/Sort command and capture the JavaScript array structure and implement a solution similar to the one in Stack Overflow where I loop though the array and merge the cells of the records when the text content is equal? Maybe I am imagining this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Denchev
Telerik team
answered on 28 Jul 2023, 11:10 AM

Hi, George,

Whenever a data operation is performed(filtering, sorting, grouping, etc.) the grid triggers its dataBound event.

You could try and execute the custom logic inside the event. This way it should be called any time you perform one of the above actions.

Give it a try and let me know in case you stumble across any issues.

Best Regards,
Georgi Denchev
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
George
Top achievements
Rank 2
Iron
Iron
Iron
commented on 28 Jul 2023, 06:17 PM

Georgi. Yes this did what I wanted to! :)  Thanks. -George
Tags
Filter Grid Sortable
Asked by
George
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Georgi Denchev
Telerik team
Share this question
or