[flexcoders] Re: DataGrid ItemRenderer Problem

2010-05-27 Thread jmfillman
Perfect thanks! Forgot all about outerDocument :-) --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Try outerDocument On 5/25/10 10:16 PM, jmfillman jmfill...@... wrote: I have an itemRenderer: mx:DataGridColumn headerText= dataField=remove width=20

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-28 Thread aramsdell2000
Yes you're right, I am sure I am making it more complicated than it should be. The way I had it, was that in my renderer class (which extends DataGridItemRenderer) depending on the column I would add another (I think it is termed) dropin renderer , one column was rendered with a link button,

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-28 Thread valdhor
I can understand how Flex could get confused with a renderer inside a renderer (I'm confused). There is no telling where an event would get dispatched to. It probably has something to do with scope. --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2...@... wrote: Yes you're right, I

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-25 Thread valdhor
I thionk you are over thinking this. All you need to do is extend the class you wish to use as your item renderer. In the extended class, either add an event listener or override a handler. In this case, that class is LinkBar. The LinkBar class has a clickHandler method already so you override

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-22 Thread aramsdell2000
I have put aside the thoughts of making fancy hyperlinks, now I am just trying to understand events in the itemrenderer. I am ashamed to say that even after searching this subject in the forum and googling it, I still find myself struggling. I ended up trying a LinkBar as Tino suggested in

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-22 Thread Amy
--- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2...@... wrote: I have put aside the thoughts of making fancy hyperlinks, now I am just trying to understand events in the itemrenderer. I am ashamed to say that even after searching this subject in the forum and googling it, I

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-21 Thread valdhor
As far as I know the code is open source but you could add a comment at his blog (http://www.jabbypanda.com/blog/?p=28). You will either have to disable the datagrids click event handler on that specific column or figure out a way to put each link in its own column. --- In

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-20 Thread aramsdell2000
Oh wow, this looks great! Thank you! This looks like what I want to do, just curious, how do I cite it if I use it/ modified version of it?? I can add a link to his website and blog in the code? --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Here is a quick and dirty

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-20 Thread aramsdell2000
Actually I am not so sure how this will work in a datagrid. One datagrid cell would have multiple hyperlink buttons. Right now the click event for the datagrid behaves differently depending on which column you click. In another column I have one link button per row. But for this one, I would

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-18 Thread valdhor
Here is a quick and dirty example using the hyperlink component from jabbypanda (http://jabbypanda.com/labs/hyperLink/srcview/index.html): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=700 mx:Script ![CDATA[

Re: [flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-16 Thread Tino Dai
Have you looked at the class LinkBar? I think that would be a good way to return a multiple buttons in a cell of a datagrid. http://livedocs.adobe.com/flex/3/langref/mx/controls/LinkBar.html -Tino On Wed, Jan 13, 2010 at 10:11 AM, aramsdell2000 aramsdell2...@yahoo.comwrote: OK, that's the

[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-13 Thread aramsdell2000
OK, that's the problem. I don't know how to add multiple link buttons through action script. And here goes my feeble attempt at explaining what I did so that it makes sense: This is how I am now populating the column with multiple hyperlinks, using the itemrenderer approach from Alex's Flex

Re: [flexcoders] Re: DataGrid itemRenderer Woes

2008-12-05 Thread Simon Bailey
Hi Max, Finally got around to looking at you example and it looks great. I am gonna start building a work example for my app with some of your logic today so thanks and I will feedback the results. One things I noticed with your app is something that happens on some test I have run.

[flexcoders] Re: DataGrid itemRenderer Woes

2008-11-26 Thread max.nachlinger
I attacked this problem by focusing on keeping all the check-boxes correctly selected during a wild scroll up or down. Here's a href=http://home.comcast.net/~max.nachlinger/dgCheckboxScroll/;my solution/a, I hope it helps. --Max --- In flexcoders@yahoogroups.com, Simon Bailey [EMAIL PROTECTED]

Re: [flexcoders] Re: DataGrid itemRenderer Woes

2008-11-26 Thread Simon Bailey
Max mate awesome, I will have a look right now. Peace S On 26 Nov 2008, at 20:42, max.nachlinger wrote: I attacked this problem by focusing on keeping all the check-boxes correctly selected during a wild scroll up or down. Here's a

[flexcoders] Re: DataGrid itemRenderer Woes

2008-11-23 Thread max.nachlinger
That's quite a nasty bug. I created a checkbox renderer, traced traced listData.rowIndex, listData.columnIndex, and uid within overrides of set data(), set listData(), commitProperties(), and updateDisplayList and found that the DataGrid seemingly randomly changes (reuses?) the same uid for

Re: [flexcoders] Re: DataGrid itemRenderer Woes

2008-11-23 Thread Simon Bailey
Max buddy I am bleedin glad it ain't just me here I tell ya. I will give it a go! Cheers ;) On 23 Nov 2008, at 02:44, max.nachlinger wrote: That's quite a nasty bug. I created a checkbox renderer, traced traced listData.rowIndex, listData.columnIndex, and uid within overrides of set

[flexcoders] Re: DataGrid ItemRenderer - Reuse with Parameters vs Cloning

2008-11-12 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Maybe you can use one of the examples on my blog? Or mine? http://flexdiary.blogspot.com/2008/09/extended-datagrid-with- stylefunction.html ;-) HTH; Amy

[flexcoders] Re: datagrid itemRenderer help

2008-10-07 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Ha, well we wouldn't want the inmates running the asylum. Props to Amy too. I'm just wondering why Adobe wouldn't already have these kinds of checks in place. I haven't looked at Label code specifically, but I see

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
by the way, I'm using RemoteObject to access my CFC, is it possible that the itemRenderer is firing before the data is back? How would I make the data populate the ArrayCollection fooAC first before rendering the datagrid? If this is the case anyways... On Mon, Oct 6, 2008 at 1:37 PM, Greg

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
You might try adding this Greg: override public function set data( value : Object ) : void { if (value != null) super.data = value; } The data property will be null until the service call has returned and populated the collection. -TH --- In flexcoders@yahoogroups.com, Greg Morphis

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Amy
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: You might try adding this Greg: override public function set data( value : Object ) : void { if (value != null) super.data = value; } The data property will be null until the service call has returned and

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
Correct. Perhaps the collection isn't bound to the dataProvider correctly. -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: You might try adding this Greg: override public function set data( value :

Re: [flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
What do you mean? The collection shows in the dataGrid just fine, it's the custom itemRenderer that isn't working? Is there something else I can provide to check this? Thanks On Mon, Oct 6, 2008 at 4:20 PM, Tim Hoff [EMAIL PROTECTED] wrote: Correct. Perhaps the collection isn't bound to the

Re: [flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
I changed the PriceLabel.as file to this.. package com.renderers { import mx.controls.Label; import mx.controls.listClasses.*; import mx.controls.Alert; public class PriceLabel extends Label { override public function set data( value : Object ) : void

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
data is probably null the first time that updateDisplayList is called. You can either put your conditional logic in the commitProperties() or set data() methods. Override public function set data( value : Object ) : void { if (value != null) { super.data = value;

Re: [flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Greg Morphis
Tim, you nailed it.. so set data keeps running until datagrid is full? I have to read up on this tonight.. but you saved my sanity! Thanks! On Mon, Oct 6, 2008 at 4:39 PM, Tim Hoff [EMAIL PROTECTED] wrote: data is probably null the first time that updateDisplayList is called. You can either

[flexcoders] Re: datagrid itemRenderer help

2008-10-06 Thread Tim Hoff
Ha, well we wouldn't want the inmates running the asylum. Props to Amy too. -TH --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: Tim, you nailed it.. so set data keeps running until datagrid is full? I have to read up on this tonight.. but you saved my sanity!

[flexcoders] Re: datagrid, itemrenderer images and events, . looking for a solution

2008-09-10 Thread Sanjay Hora
Thanks Alex. That worked like a charm. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: ITEM_ROLL_OVER event? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sanjay Hora Sent: Monday, September 08, 2008 11:01 AM To: flexcoders@yahoogroups.com

[flexcoders] Re: DataGrid itemRenderer current row and column

2008-08-26 Thread robin bakkerus
Well i found out myself thanks to Peter Ent see http://weblogs.macromedia.com/pent/archives/2008/03/itemrenderers_p_2.html --- In flexcoders@yahoogroups.com, robin bakkerus [EMAIL PROTECTED] wrote: Hi there, if you have a (generic) item renderer like this: mx:DataGridColumn

[flexcoders] Re: DataGrid itemRenderer and Loader Class

2008-04-11 Thread natjai
Thanks for your response. If Image is used as a renderer, would it load the image pointed to by the URL? If the image is already loaded by loader class (for a different purpose and is available in a local cache), would this not be redundant load? -nj --- In flexcoders@yahoogroups.com, Alex

[flexcoders] Re: DataGrid-itemRenderer-NumericStepper-sending data question

2008-03-01 Thread mousikos2001
Its outside the DataGrid.

[flexcoders] Re: DataGrid-itemRenderer-NumericStepper-sending data question

2008-03-01 Thread mousikos2001
Its outside the datagrid.

RE: [flexcoders] RE: DataGrid ItemRenderer

2007-09-28 Thread Alex Harui
editable=true From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Friday, September 28, 2007 1:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: DataGrid ItemRenderer My code is like this now, but am

[flexcoders] RE: DataGrid ItemRenderer

2007-09-28 Thread Manu Dhanda
My code is like this now, but am not getting any call to my eventhandler method while am making any changes to the inline comboboxes in datagrid. mx:DataGrid id=resultsDG dataProvider={newUserList} itemEditEnd=notifyChanges(event) mx:columns mx:DataGridColumn

[flexcoders] Re: DataGrid itemRenderer

2007-09-26 Thread byte.sensei
Awesome - works great. Thanks Alex - sometimes the biggest problem is figuring out that something like labelFunction exists. I read through the Flex help docs but must've somehow overlooked this. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: read up on

[flexcoders] Re: DataGrid - ItemRenderer BUG on scrolling.

2007-06-06 Thread alom17959
Hi , thanks Troy, I alredy checked what u advise, unfortunately it didnt work, i'd like to think this is a bug from Flex API cuz u dont thing im doing anything wrong. The problem happens with any kind of renderers, custom renderers, inline renderers, im so frustrated, something like using and

[flexcoders] Re: DataGrid, itemRenderer, button with custom image resizing

2007-03-22 Thread maury.sword
Is your button class the itemRenderer ? Have you tried creating an itemRenderer that extends a container and includes your button as a child ? I think I have seen checkBox itemRenderers implemented in this manner. --- In flexcoders@yahoogroups.com, wdsnapper [EMAIL PROTECTED] wrote:

[flexcoders] Re: DataGrid, itemRenderer, button with custom image resizing

2007-03-22 Thread wdsnapper
Thank you. This solved my problem. Specifically, I changed my remove button renderer class from extending Button to a class that extended Canvas and then create the button in there and add the Button as a child as you suggested. Very simple and works perfectly. --- In

[flexcoders] Re: DataGrid ItemRenderer erratic setStyle - Is this a bug?

2006-08-18 Thread Oscar
Are you sure that is working OK? I had seen the example before, try sorting by the last column. I has the same problem ... --- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: Hi, I've found this examplehttp://www.iepl.net/DataGridItemRendererSample/DataGridItemRen

[flexcoders] Re: DataGrid ItemRenderer erratic setStyle - Is this a bug?

2006-08-18 Thread Tim Hoff
I was wondering how long it would take for someone to notice the querky sort behaviour. The example also acts strange when the StartDate column is sorted. However, when data comes from a backend, instead of hardcoded in the app, these types of problems don't seem to occur. -TH --- In

[flexcoders] Re: DataGrid ItemRenderer erratic setStyle - Is this a bug?

2006-08-18 Thread Oscar
As I said, it also happens if you scroll. My original app is actually calling an HTTP Service, and I am having the same problem. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: I was wondering how long it would take for someone to notice the querky sort behaviour.

Re: [flexcoders] Re: DataGrid ItemRenderer erratic setStyle - Is this a bug?

2006-08-18 Thread Oriol Gual
Yes, is working ok for me, I've tried sorting it on every column an scrolling, and there's no problem. I've only changed a few things, this is my itemRenderer code:package { import mx.controls.Text; public class VariacioItemRenderer extends Text { public function VariacioItemRenderer() {

[flexcoders] Re: DataGrid ItemRenderer erratic setStyle - Is this a bug?

2006-08-18 Thread Tim Hoff
Thanks Oriol, I made changes, similar to yours, to the sample. It fixed the problem. -TH View Sample--- In flexcoders@yahoogroups.com, "Oriol Gual" [EMAIL PROTECTED] wrote: Yes, is working ok for me, I've tried sorting it on every column an scrolling, and there's no problem. I've only changed a

Re: [flexcoders] Re: DataGrid ItemRenderer

2006-08-05 Thread Clarke Bishop
In case it helps anyone else, I've got this bullet thing working now. Three things were needed: - Setting the horizontal and vertical scroll policy as sinatosk suggested- Specifying the width, but not the height or the Text component. When you do this the text box will automatically adjust its

[flexcoders] Re: DataGrid ItemRenderer

2006-08-01 Thread ben.clinkinbeard
From what I was told in a previous thread, non-visible rows are not rendered. Basically, it renders however many rows are visible, and then when you scroll down for instance, it moves them all up one and moves the top row to the bottom and rerenders its content. Ben