So I am trying to search for data that’s at the bottom of the table and not in the viewport, check Demo.
It doesn’t scroll towards the searched text even if it exists in the table. If this is not meant to be a default behaviour then how can i achieve this functionality?
Hi @abhay.gupta
Within the used logic, there is no auto-scroll mechanism applied. That would need to be added separately. But then it might be hard to determine where to scroll where there are more than one query that meets the search.
Okay got it but if I want to scroll towards the very first match that I find, how would that be done?
The queryResult is an object that shares query coordinates (row, and column index). You can use the sctollViewportTo() method to scroll to that position. Ref: Core API reference - JavaScript Data Grid | Handsontable
I had another doubt not related to this but can I give different cell selection colour?
Selection colors is controlled by the theme. Here Handsontable - Handsontable data grid for JavaScript, React, Angular, and Vue. you can test different styling and get new CSS to use it the project.