Skip to main content
Inspiring
November 11, 2011
Question

Scrollbar of Datagrid Flash as3

  • November 11, 2011
  • 1 reply
  • 3871 views

Hello to all:

Somebody can tell me, How remove the scrollbar from the datagrid to display a list that it grows as large or small like the list size?

and how to appear the scrollbar in the stage?

thanks in advance.

Regards.

Joselyn

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
November 11, 2011

You should look thru the help documents and review all of the DataGrid's properties.  You will find properties that help you determine the width and height values and others that allow you to set whteher or not the scrollbars appear.  For instance. the following could make the DataGrid adjust its size for the number of rows it holds...

dataGrid.height = dataGrid.headerHeight+dataGrid.length*dataGrid.rowHeight;

And the following will set the vertical scrollbar to not appear...

dataGrid.verticalScrollPolicy = ScrollPolicy.OFF;

Joselyn6Author
Inspiring
November 15, 2011

Hello Ned, Thanks very much, for answer me, as you say I've viewed the help documents and review all of the DataGrid's properties, and I finded the properties of the verticalScrollPolicy and I've set the

aDg.horizontalScrollPolicy = ScrollPolicy.OFF; but it show me this error

"1119: Access to a possibly undefined ScrollPolicy property through a reference with static type fl.controls: DataGrid."

I think the error should not have because it is a property, Isn´t it?

Joselyn6Author
Inspiring
November 15, 2011

Hello Ned,

Please, excuseme because I make a mistake I wanted to say "aDg.verticalScrollPolicy = ScrollPolicy.OFF.

instead aDg,horizontalScrollPolicy = ScrollPolicy.OFF"

Thanks in advance Ned.

Regards

Joselyn