Moving DataGrid Scrollbar to the left side of grid


i've searched on internet , have no clue begin one. has ever done or have idea how it? i'm using 4.6. thanks.

use below code:

 

<mx:vbox width="100%" height="100%" paddingleft="20" paddingright="-20">

  <flex:customdatagrid width="100%" dataprovider="{arraydata}"

        horizontalscrollpolicy="on" verticalscrollpolicy="on">

   <flex:columns>

    <mx:datagridcolumn headertext="name" datafield="name" paddingleft="20"/>

    <mx:datagridcolumn headertext="email" datafield="email"/>

    <mx:datagridcolumn headertext="phone" datafield="phone"/>

   </flex:columns>

  </flex:customdatagrid>

</mx:vbox>

 

 

code custom datagrid:

public class customdatagrid extends datagrid

{

  public function customdatagrid()

  {

   super();

  }

 

  public override function validatedisplaylist():void

  {

   super.validatedisplaylist();

  

  if( verticalscrollbar && verticalscrollbar.visible ){

    verticalscrollbar.x = 0;   

   }

  }

 

}

 

 

 



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support