Saturday, June 19, 2010

Issue Using (Native) Windows or Detached Window with AIR:-

Create custom component which contains Combobox and Datagrid.

Application conations two button 1) Same Window and 2) New Window. (Label of two button)

When you click on “Same Window” button your custom component should get added dynamically in your application.

And when you click on “New Window” button your custom component should get open in different window (it should get shifted from application and should appear in Window component).

Issue faced:-Clicking on Combobox, list is not getting open as change event doesn’t get fired in Native Window as it looses reference from main application.

Issue with DataGrid in Native window (AIR).

DataGridEvent.COLUMN_STRETCH event get affected if try to open datagrid in Native Window.

DataGridEvent get fired but takes long time or even stuck while column stretch

Tooltips all show up in the main application window rather than the popped up window by using mx:Windows and mx:WindowedApplication.

Note:

Application is a Desktop Application. Only one instance is created in Application for your custom component to preserve current state on your custom component it can be Style, data, or other subcomponent state of your custom component (as above mentioned 2 component are just sample).

Solution 1: - There is no real fix to this issue. You can recreate the component in the pop up window.
It is a heavy on performance.

Solution 2: - Use “Object polling Design Pattern” which will help you to overcome performance issue.

Welcome with good solution for this issue.

No comments:

Post a Comment