[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 applicat

[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 a

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

2007-01-09 Thread bsdensmore
eturned from the Remoting 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

[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 thi

[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 the

[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 were

[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 pa

[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: Can't get value after labelfunction

2006-12-01 Thread bsdensmore
rks, even when you update the quantity. > > theData = new ArrayCollection( > > [{each_wt:30,quantity:1,net_wt:0}, > > {each_wt:95,quantity:0,net_wt:0}, > > {each_wt:105,quantity:9,net_wt:0}]); > > > > I am going to modify your example some a

[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@yahoo

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

2006-11-30 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 > > > > ye

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

2006-11-30 Thread bsdensmore
.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > First: Does your dataProvider (the item objects specifically) have a > property for each of the three columns? > > Tracy > > > > > > From: flexcoders@yahoogroups.co

[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

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

2006-11-30 Thread bsdensmore
e found that for this kind of non-visual stuff, even Flash Player > 7 was blazingly fast. The improvements in 8, 9 make it even faster. > > > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of bsdensmore > Sen

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

2006-11-30 Thread bsdensmore
lets you use > > labelFunction to change the way the data is displayed, without messing > > up the underlying data. Currency formatting, for example. > > > > > > > > Just brainstorming. > > > > > > > > Tracy > > > > > > > >

[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 A

[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 t