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

Double click to column resize changes scroll position

2 Answers 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
revanth
Top achievements
Rank 1
revanth asked on 25 Jul 2016, 07:17 PM

Hi,

I'm using kendo grid with resizable and scrollable on. The problem is when i double click the resize handle, the column gets resized but the scroll position changes and i have to scroll back to the resized column to see it.

http://dojo.telerik.com/oNOPe

Any help would be really appreciated.

Thanks

2 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 27 Jul 2016, 03:36 PM

Hello revanth,

Indeed the scroll position is not retained when user double clicks on the resize handler and the scroll position should be applied manually. 

Regards,
Boyan Dimitrov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
revanth
Top achievements
Rank 1
answered on 27 Jul 2016, 03:55 PM

Hi Boyan,

I added a listener for columnResize and adjusted the scroll position manullay. It is working fine.

columnResize: function() {
  this.scrollables[1].scrollLeft = this.scrollables[0].scrollLeft;
  }

Thanks

Tim
Top achievements
Rank 1
commented on 14 Jul 2023, 01:10 PM

Hey revanth!
I am having the same issue& Could you please provide the full code for your method?
Thank you!
Georgi Denchev
Telerik team
commented on 18 Jul 2023, 08:45 AM

Hi, Tim,

This behavior should no longer be present in the newer versions of Kendo UI so the above workaround is no longer needed.

Nevertheless, here's a Dojo where the provided snippet is added:

http://dojo.telerik.com/@gdenchev/upUKaHOp 

Best Regards,

Georgi

Tags
Grid
Asked by
revanth
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
revanth
Top achievements
Rank 1
Share this question
or