You have to do a sortCompareFunction, ala
mx:DataGridColumn dataField=number
sortCompareFunction={sortOnNumber} /
and then create something like:
private function sortOnNumber( obj1:Object, obj2:Object ):int
{
if( obj1[number]
I found success in these cases using dataChange, see
http://blog.dougco.com/coding/flex/datagrid-with-multiple-pulldowns/
for more details.
-d
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
Hi Friends ..
I am writting a simple code in which i have one datagrid with two
I had success with the dataChange event handler, see:
http://blog.dougco.com/coding/flex/datagrid-with-multiple-pulldowns/
--- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote:
After a bit more investigation it appears that it might be a redraw
issue since the last cell
One way to display a human readable date in a datagrid and have it be
sortable, is to use labelFunction={convertDate} and have the server
send over unix milliseconds. This is important if you want to be able
to properly sort the column.
A sample function looks like:
private function
You might find my posting helpful:
http://blog.dougco.com/coding/flex/datagrid-with-multiple-pulldowns/
--- In flexcoders@yahoogroups.com, cobpez [EMAIL PROTECTED] wrote:
Hello, I just found both Flex and this group. So here a newbie problem:
I have a DataGrid (AdvancedDataGrid even) that
I recall having to play around with this when I did this in the past,
just from memory I would suggest you try setting widths after you set
grid.columns by doing grid.columns[0].width = 100, etc. I think it
also would not work exactly if the total widths did not match the
grid, so you could try
You need to move your code that sets the label:
criticite.text = ( resultGravite * resultProbabilite ).toString();
into the doShow() routine since that is where the objects get (re)set
everytime the grid changes.
-doug
--- In flexcoders@yahoogroups.com, quantum_ohm [EMAIL PROTECTED]
wrote:
I have seen this also, I have a server function which sends back to
the client the UNIX time in seconds, and I find that I have to
manually tell the client to do the offset:
var myDate:Date = new Date( unixSecs - (8*60*60*1000) );
since I want the time/date in separate pieces:
My advice is to make the itemrenderer a separate component and use the
dataChange event in that component. I have an example at
http://blog.dougco.com/coding/flex/datagrid-with-multiple-pulldowns/
Hope that helps,
-doug
--- In flexcoders@yahoogroups.com, quantum_ohm [EMAIL PROTECTED]
wrote:
Hi
I think you ran into the same thing I did, the datagrid will render
things oddly sometimes, I had to use the dataChange function in my
itemrenderer to get what I wanted.
I go into more detail at
http://blog.dougco.com/coding/flex/doesnt-seem-like-normal-behaviour-for-datagrid/
if that is helpful.
Hi all,
I am building out a datagrid in AS, and the mx piece is:
mx:DataGrid id=tables dataProvider={gridData}
change=selectTable(event) sortableColumns=true width=100%
height=100% /
Now, when I create the grid, everything shows up great but at the end
of the populating the grid code I have a
I'd like to be able to control the placement of a tooltip, i.e. have
it appear to the left of the object. It seems to decide either above
or below the object normally. Anyone develop a way to do this?
thanks
Hi, I am loading in images in a loop as follows:
imgs[j] = new Image();
pict = new Loader();
url = http://mydomain.com/images/test; + j + .jpg;
preq = new URLRequest(url);
pict.load(preq);
imgs[j].addChild(pict);
and if I close my browser or navigate away during a load, I get a
popup from
Hi all,
I have an array of image names (of PNGs on my server), and I want to
load these all up in an object list of images so I can show them when
needed in my application.
I've found an oddity where some of these, sometimes, don't load
properly for whatever reason and are blank when I need to
I'm wondering if there is a way to reference a distinguishing variable
for a given app, such as a last-modified or build date? As we're
pushing out new versions of a given app it would be nice to have
something in the lower corner letting the user know the version they
are running without relying
Check In system, ala CVS or SVN... http://www.nongnu.org/cvs/
d
--- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED]
wrote:
'scuse the ignorant question, but what is a CI system?
--- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
Thanks Johannes. Can you suggest
Hi all,
If I have an action (like putting up an alert popup, adding a child to
the canvas, etc) that needs to be delayed, it would be great to have a
good old sleep or something prior to the command, but I guess one
has to use Timers.
But since Timer calls a new function, how to best pass along
I'm creating a number of buttons programmatically and I'd like to have
a unique value passed along to a function when each one is clicked.
So if I am doing something like:
for (i=0;i10;i++) {
b = new Button();
b.y = offset;
b.label = click me;
b.tooltip = button +i;
--- In flexcoders@yahoogroups.com, boy_trike [EMAIL PROTECTED] wrote:
parentApplication.currentState = foobar;
bruce
I've used:
import mx.core.Application;
Application.application.currentState = foobar;
19 matches
Mail list logo