[flexcoders] Calling LabelFunction on PrintDataGrid

2007-02-19 Thread bsdensmore
I am using the FlexPrintJob() class to print a datagrid. I'm using a custom component to create the Print view and inside I have a PrintDataGrid component. The dataProvider of this PrintDataGrid is filled with the dataProvider from my main application. I have a labelfunction that the main

[flexcoders] Re: datagrid error w/2.01

2007-01-11 Thread bsdensmore
I was having the same issue as well. I think it had to do with some of my columns showing up when they were set to be hidden. The error seemed to happen when I would edit a column in the grid while those hidden columns were showing up. I ended up going back to 2.0 since I didn't get those errors

[flexcoders] Re: flex 2.0.1 feedback from the trenches (BUG !)

2007-01-09 Thread bsdensmore
Call. Ben --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 05 January:32, bsdensmore wrote: My datagrid has a few columns that have visible=false but they are still showing up. I'm seeing this. I recompile the exact same code against the 2.0 SDK

[flexcoders] Re: flex 2.0.1 feedback from the trenches

2007-01-05 Thread bsdensmore
I just upgraded my windows version to 2.0.1. All went well but there is one very odd issue. My datagrid has a few columns that have visible=false but they are still showing up. And a few of my fields that I have set editable=false are allowing me to go into and edit. Anyone else run into this?

[flexcoders] Database insert with 100's of rows

2007-01-04 Thread bsdensmore
The application I'm currently working on uses a datagrid that can sometimes contain 100's of rows. All of these rows need to be inserted or updated in our database when editing. I'm finding that if there is a large amount of data, doing the inserts can take forever and Flex eventually times out.

[flexcoders] stuck with itemEditBeginning event

2006-12-27 Thread bsdensmore
I'm trying to use the itemEditBeginning event on a datagrid to only allow a column to be editable if the person clicks on it, if they tab to it I need to kick them out of the column. I can't figure out how I can get access to the keycode since the itemEditBeginning event is a DataGridEvent and

[flexcoders] Skipping editable Datagrid cells when tabbing

2006-12-13 Thread bsdensmore
Does anyone know of a good way to skip over an editable cell in a datagrid while tabbing? I thought I could have an event listener that takes a KEY_UP trigger on the event and look to see if the keycode was equal to 9 which is the tab key and look to see which column they were in, and if they

[flexcoders] Re: Comparing two Dates

2006-12-01 Thread bsdensmore
Hi Gaurav, Ed Eustace wrote a Validator to handle this. He sent me a copy but I haven't had a chance to use it yet. I'll be putting it into my app in the next day or so. If you want I can send it to you. Just email me at bsdensmore[at]yahoo[dot]com. Ben --- In flexcoders@yahoogroups.com

[flexcoders] Re: Can't get value after labelfunction

2006-12-01 Thread bsdensmore
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Thursday, November 30, 2006 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction yes, they do. I'm just doing a very small example to get my head

[flexcoders] Re: Comparing two Dates

2006-12-01 Thread bsdensmore
Dimitrios, How do you use this? I'm trying to pass in 2 dates from a textInput but when I try to use the displayDate() method to format the dates and pass them into the compareDates() method it complains about the data types. This is what I'm trying to do: private function compareDates():void {

[flexcoders] Re: Comparing two Dates

2006-12-01 Thread bsdensmore
Nevermind, My brain is fried from trying to figure out my itemrenderer issue. I was looking at the code wrong. All set. Thanks, Ben --- In flexcoders@yahoogroups.com, bsdensmore [EMAIL PROTECTED] wrote: Dimitrios, How do you use this? I'm trying to pass in 2 dates from a textInput but when

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Wednesday, November 29, 2006 5:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can't get value after labelfunction I have 2 DataGridColumns that use a labelfunction to multiply a couple

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
[mailto:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Thursday, November 30, 2006 8:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction Thanks Ben and Tracy, I was thinking that I might need to use an item renderer but was hoping to not have

[flexcoders] Re: Datagrid Scrolling issue

2006-11-30 Thread bsdensmore
Check out this blog entry. It shows you how to prevent that. http://www.returnundefined.com/2006/11/creating-truly-reusable-renderers-with-classfactory/ --- In flexcoders@yahoogroups.com, Yasovardhan Babu [EMAIL PROTECTED] wrote: Hi, I have an issue with datagrid scrolling. If one of the

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bsdensmore Sent: Thursday, November 30, 2006 1:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction I keep going in circles with this. If I don't use the ClassFactory I can

[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread bsdensmore
Of bsdensmore Sent: Thursday, November 30, 2006 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can't get value after labelfunction yes, they do. I'm just doing a very small example to get my head around this. I actually took the ClassFactory stuff out and went

[flexcoders] Can't get value after labelfunction

2006-11-29 Thread bsdensmore
I have 2 DataGridColumns that use a labelfunction to multiply a couple of fields and display the value in another column. For some reason after the field is updated with the total I can't get at that value. The dataProvider that the DataGrid is bound to is a query result that is converted to an

[flexcoders] Re: totaling items in datagrid

2006-11-28 Thread bsdensmore
a labelfunction will do the calculations as you tab through the fields or as change rows on the grid. I use this to do some calculations and it works great. private function calcAdjAmount(item:Object,column:DataGridColumn):String { var adjustedAmt:Number;

[flexcoders] Question on itemRenderer

2006-11-24 Thread bsdensmore
I have a DataGrid column that is using an itemRenderer to place a checkbox in the Grid. This will allow someone to select multiple rows to delete. I'm slowly starting to understand how to implement an itemRenderer but still unclear on a couple of things. After the user selects the rows they want