Thanks for responding, Tracy.
Let's say this is an application that allows generation of license numbers.
Imagine this:
You have 3 columns in the datagrid. The first and second columns are the
first and last names of a person. The third column is a button (which is
really part of an MXML
' button and on click, update the model with
the number, and update the display of the renderer.
-Original Message-
From: Pilby i...@pilby.us
Reply-to: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid question
Date: Mon, 20 Apr 2009 10:59:20
If it were me, I would create an item renderer for that column and extend
button. Add the click handler in the renderer to generate the license number.
--- In flexcoders@yahoogroups.com, Pilby i...@... wrote:
Thanks for responding, Tracy.
Let's say this is an application that allows
.
Tracy Spratt,
Lariat Services, development services available
_
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Pilby
Sent: Monday, April 20, 2009 1:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid question
Thanks
.iterate through each row. You absolutely *cannot* do that, because all
the DG rows do not exist, only the rows currently visible exist.
You need to have your renderer update the dataProvider with the generated
value, then iterate through the dataProvider. This should not be
difficult.
Tracy
: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Pilby
Sent: Monday, April 20, 2009 6:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid question
.iterate through each row. You absolutely *cannot* do that, because all
the DG rows do not exist
There are a few ways to do this but the easiest is to add a value to your
object that will be updated in the item renderer, perhaps in the set data
function. You could also use an event and a public property in your item
renderer.
var myObject = new myClass();
override public function
Ah,
I resolved this by putting my mx:column tag inside my datagrid
extended mxml component.
--- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote:
do you have a different namespace for your datagrid in mxml? use the
same for the columns property too.
- venkat
maybe the easy way is changing the style. Just make your highlight
colors the same has the alternate colors.
--- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote:
I asked a while back and didn't see an example of how to override the
method that selects an item in a datagrid, or
Subclass DataGrid and override selectItem, drawHighlightIndicator and
drawSelectionIndicator so that they do nothing.
--- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote:
I asked a while back and didn't see an example of how to override the
method that selects an item in a
you beat me to the answer ben ;-)
--- In flexcoders@yahoogroups.com, ben.clinkinbeard
[EMAIL PROTECTED] wrote:
Subclass DataGrid and override selectItem, drawHighlightIndicator and
drawSelectionIndicator so that they do nothing.
--- In flexcoders@yahoogroups.com, djhatrick
Not sure if this is the right way, but it definitely works.
There are two protected methods inside the DataGrid that are
responsible for drawing the selection and highligting.
drawHighlightIndicator
drawSelectionIndicator.
override these methods with blank implementation.
- venkat
How do you override selectItem?
ben.clinkinbeard [EMAIL PROTECTED] wrote: Subclass DataGrid and
override selectItem, drawHighlightIndicator and
drawSelectionIndicator so that they do nothing.
--- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote:
I asked a while back
it is a protected method. you can override it.
override protected function selectItem(item:IListItemRenderer,
shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean
{
}
- venkat
http://www.venkatj.com
--- In flexcoders@yahoogroups.com, mark goldin [EMAIL PROTECTED]
wrote:
How
OK, i did this but now i get a compile errror
Severity and DescriptionPathResourceLocation
Creation Time Id
Could not resolve mx:columns to a component implementation.
UFC_Beta2/src/componentsScoreBox.mxml line 1111198265309079
357198
--- In
do you have a different namespace for your datagrid in mxml? use the
same for the columns property too.
- venkat
http://www.venkatj.com
--- In flexcoders@yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote:
OK, i did this but now i get a compile errror
Severity and Description Path
Thanks
Will try and see how it comes up.
VVV
They are indeed two rows returned in a dataset. I just want to be
able to present such that if column1, column2 and column3
information is same in two rows, I donot want to display the same
information in the second row.
So, Display will be like this for the above mentioned scenario;
Col1
18 matches
Mail list logo