Lock columns and Rows in DataGrid for Visibility.

April 22, 2008

There are two properties in DataGrid where we can lock the visibility of the rows and columns in the DataGrid [here lock the visibility means, which are always visible ,like when scrolling they are not moved to and forth].

The property for ColumnLock is

lockedColumnCount

this takes the value to lock the number of Columns in the Display from left of DataGrid. Here horizontalscrolling locks the columns for visibility.

The property for RowLock is

lockedRowCount

this also takes the value to lock the number of rows in the Display from top of DataGrid. Here verticalscrolling locks the rows for visibility.

code Example:

<mx:DataGrid x=”277″ y=”331″ id=”dg” dataProvider=”{xml}”

lockedColumnCount=”3″ height=”96″ horizontalScrollPolicy=”on”

verticalScrollPolicy=”on” width=”397″>

<mx:columns>

<mx:DataGridColumn headerText=”Sl.No” dataField=”slno”/>

<mx:DataGridColumn headerText=”Product Name” dataField=”PNAME”/>

<mx:DataGridColumn headerText=”Pro ID” dataField=”PID”/>

<mx:DataGridColumn headerText=”Cat ID” dataField=”CAT_ID”/>

<mx:DataGridColumn headerText=”Cat Name” dataField=”CATEGORY”/>

</mx:columns>

</mx:DataGrid>

The below image shows the locking of two columns.

Enjoy the code !, happy Flexing.


Error Message when the required dll file [plugin] is missing.

April 10, 2008

Previous post tells about the plugins requirement and i forgot to mention in that post that
the dll file is neccesary only when running the apps from Flex Builder 2 but not in Flex Builder 3.

The Erro Message displayed while running your App’s from Flex Builder 2 when the required .dll [plugin]
is missing is:
Error Message For dll file [plugin]
The above Window defines the Error.
Enjoy Flexing !


.dll file required to run the .swf file in the browser [plugin file]

April 9, 2008

Each time we run the Flex App’s the browser looks for the flash plugin in the Browser’s plugin folder.So the plugin file that is required is npswf32.dll.

This is by default included in the plugin folder of the browsers installation folder, when you install the flash player, but there is a situation  where this file  missed out sometimes when we go for Browser ’s new installs .

so at that time the file[plugin] we required [present at the folder "C:\WINNT\system32\Macromed\Flash"] is missing and need to be put it in the plugin folder of the browser install folder.

Now take the required file[copy it from the path given above] and paste it in the folder plugin folder of the browser install folder.

Now it works file.Enjoy Flexing.


About the Flex memory usage.

April 5, 2008

In the flexbuilder install folder look for flexbuilder.ini … open it in a
text editor you can change the max and min values of RAM that FlexBuilder is
allowed to use.
Although its normal fro flex builder 2 to take up that kind of resources.
They improved that a lot if Flex Builder 3