1 Reply Latest reply on Nov 18, 2006 9:57 AM by Gunar L.

    Put a scroll bar at left side

      Hi all,

      I'm trying to change the side of a vertical scroll bar is set on a datagrid,

      e.g.: the defaut side is right and I want to set this vertical scroll bar on left.

      Thank you everybody,

        • 1. Re: Put a scroll bar at left side
          Gunar L.
          The vertical scroll bar position in a datagrid is set in the updateDisplayList function.
          what you can do is extending from datagrid and add the following code:

          override protected function updateDisplayList(unscaledWidth:Number,
          super.updateDisplayList(unscaledWidth, unscaledHeight);
          verticalScrollbar.x = 0;

          this code example will only move the scrollbar to the left, but i guess you will also have to adjust the content position.
          if you can't access the attribute verticalScrollBar from you new class, add the following code above the class definition:

          import mx.core.mx_internal;

          use namespace mx_internal;