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
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,
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
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
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
--- 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
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
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
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
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[
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
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
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.
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]
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
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
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
--- 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
--- 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
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
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
--- 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
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 :
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
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
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;
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
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!
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
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
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
Its outside the DataGrid.
Its outside the datagrid.
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
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
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
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
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:
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
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
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
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.
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() {
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
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
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
46 matches
Mail list logo