Hi Domantas,
Thanks for contacting Syncfusion support.
While changing the Grid filter settings dynamically we have refreshed the Grid header element which cause the scrollbar to set at initial position. However you can maintain the horizontal scroll position by setting the “scrollLeft” property of Grid scroll module. Please refer to the below code example and sample link for more information.
[component.ts]
public onChange(e: ChangeEventArgs): void {
var left =this.grid.scrollModule.content.scrollLeft; // get the scroll position
this.grid.filterSettings.type = <FilterType>e.value;
this.grid.clearFiltering();
setTimeout((e)=> {this.grid.scrollModule.content.scrollLeft = left;},25); // setting the position
}
|
Please get back to us if you need any further assistance on this.
Regards,
Thavasianand S.