I have a set of 7 columns in an advanced datagrid which are created statically, then i have the columns which are created dynamically with rendered TextInput and Combobox. first 7 columns contain the summary of the dynamic fields. User enters the value in dynamic columns and some heavy calculation is done behind the scene. on the basis of that calculation 7 static columns are updated.
here i am facing 2 issues.
1. I am not able to maintain the tab sequence, because after every calculation the dataprovider is refreshed and focus moves out from the current control.
2. I want to show busy cursor while flex renders the grid. i can show while doing calculation but at the time of rendering it dissappear. is there any way we can handle the rederingStartevent and renderingCompleteEvent.
Thanks
Ajit
04/13/2009 - 09:32
I have had similar issues retaining the tab sequence myself so I will attack the 2nd part of your question first.
My first reaction would be to subclass the advanced datagrid with the singular purpose of overriding the
updateDisplayListfunction. In the overridden function I would try setting the busy cursor beforesuper.updateDisplayListand resetting it after. Basically, the class would look something like below.{
import mx.controls.AdvancedDataGrid;
import mx.managers.CursorManager;
public class MyDataGrid extends AdvancedDataGrid
{
protected override function updateDisplayList(
unscaledWidth:Number, unscaledHeight:Number):void
{
CursorManager.setBusyCursor();
super.updateDisplayList(unscaledWidth,
unscaledHeight);
CursorManager.removeBusyCursor();
}
}
}
04/14/2009 - 01:27
I tried this approach, but nothing helps.
I traced this function, Control goes in the function but busy cursor never comes.
screen seems like hang till it renders the data.
04/14/2009 - 09:15
I was wondering if you can post some code on what your doing for the rendering?
09/25/2009 - 14:08
Have you found the solution to the cursor.. i tried above code but no luck. I have a requirement to show a busy cursor when flex renders the grid during sorting/filtering
10/20/2009 - 02:03
if you guys using Remote Object you can try this one to show the busy cursor..
<mx:RemoteObject id="monthRO" destination="commonService" result="on_monthROResult(event)" fault="ro_onFault(event)" showBusyCursor="true"/>
this code usually located in the .mxml file
11/12/2009 - 04:31
@ somerset08 - even if you do show busy cursor as true, if you are fast enough and in the mood for some monkey testing, you can click on other objects in the tree too. is there a way to avoid this completely?
02/15/2010 - 19:25
somerset08, thanks for this. It was an quickfix for an expectation from client.
09/23/2010 - 05:40
hi
Add Comment
[language] [/language]
Examples:
[javascript] [/javascript]
[actionscript] [/actionscript]
[csharp] [/csharp]
See here for supported languages.
Javascript must be enabled to submit anonymous comments - or you can login.