Bug Report T862212
Visible to All Users

DataGrid - Scrollbar position is incorrect after resizing the browser window if rtlEnabled is true

created 6 years ago (modified 6 years ago)

[DevExpress Support Team: CLONED FROM T837344: DataGrid - Column resizing works incorrectly if rtlEnabled is true]

Example - https://codepen.io/ArtemDevExpress/pen/gOboGdE?editors=1010

Steps:

Open the example and decrease the right page size using the splitter

Actual behavior:
DataGrid displays the horizontal scrollbar at the left

Expected behavior:
DataGrid should display the horizontal scrollbar at the right since rtl mode is turned on

Answers approved by DevExpress Support

created 6 years ago

Hi Mike,

We researched this case and found that there is no simple way to fix the problem at the widget level. We tried multiple different solutions but none of them covers all scenarios and device-specific cases. The main problem is that our current simulated scrolling mechanism fails to emulate correct right-to-left behavior in certain cases. We need to completely re-work it and/or replace it with native scrolling to avoid possible problems in all cases. This task requires a lot of time and resources and I cannot give you a time frame on it.

As a workaround, it's possible to manually update the scrollbar position using the window.resize event handler. Please take a look at the following examples:
jQuery
Angular

Let us know if this approach helps.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.