[flexcoders] Re: Datagrid question

2009-04-20 Thread Pilby
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

Re: [flexcoders] Re: Datagrid question

2009-04-20 Thread Maciek Sakrejda
' 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

[flexcoders] Re: Datagrid question

2009-04-20 Thread valdhor
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

RE: [flexcoders] Re: Datagrid question

2009-04-20 Thread Tracy Spratt
. 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

[flexcoders] Re: Datagrid question

2009-04-20 Thread Pilby
.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

RE: [flexcoders] Re: Datagrid question

2009-04-20 Thread Tracy Spratt
: 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

[flexcoders] Re: Datagrid question

2009-04-20 Thread Adrian Resa Jones
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

[flexcoders] Re: DataGrid question

2007-12-22 Thread djhatrick
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

[flexcoders] Re: DataGrid question

2007-12-21 Thread fmotagarcia
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

[flexcoders] Re: DataGrid question

2007-12-21 Thread ben.clinkinbeard
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

[flexcoders] Re: DataGrid question

2007-12-21 Thread rueter007
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

[flexcoders] Re: DataGrid question

2007-12-21 Thread rueter007
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

Re: [flexcoders] Re: DataGrid question

2007-12-21 Thread mark goldin
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

[flexcoders] Re: DataGrid question

2007-12-21 Thread rueter007
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

[flexcoders] Re: DataGrid question

2007-12-21 Thread djhatrick
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

[flexcoders] Re: DataGrid question

2007-12-21 Thread rueter007
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

[flexcoders] Re: Datagrid question

2007-02-20 Thread VVV
Thanks Will try and see how it comes up. VVV

[flexcoders] Re: Datagrid question

2007-02-19 Thread 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