Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-04-2008, 01:30 PM   #1
Senior Member
Join Date: Jun 2005
Posts: 174
Default ComboBox Cell Renderer

Hi all,

I'm creating a ComboBox cell renderer to use in a DataGrid. I'm building it off the examples supplied by Adobe from here:


The problem is that the items listed in the combo box are hard coded into the class. I would like to have multiple columns in my data grid that use the ComboBox cell renderer, but each column should have its own set of choices. For now, my quickest and easiest solution is just to have multiple combo box cell renderer classes, but I was hoping that someone might have a better solution that allows the ComboBox data provider to be set dynamically.

carriker is offline   Reply With Quote
Old 10-07-2008, 07:23 PM   #2
Join Date: Aug 2008
Posts: 51

The best way I can think of to do this is by using your standard combobox cell renderer, but add or use the list or dropdown property (variable) to call outside of itself to get the list it needs. In my case, I am extending DataGridColumn to store the relevant list there, and the item editor can look to its parent column and pick up the list it needs.
regnillob is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing Cell Renderer to Format Cell before it's Displayed DeJarnett Components 0 02-08-2008 09:50 PM
ComboBox Cell Rendering, Problems loading values into it mwiley43 Components 2 10-30-2006 07:46 PM
Communicate b/w datagrid and cell renderer mike k ActionScript 2.0 0 02-27-2006 12:26 PM
Radio Cell Renderer ScarletPimperinel ActionScript 1.0 (and below) 0 01-05-2006 10:39 AM
ComboBox in a cell of DataGrid????? Komal Components 3 02-08-2005 10:05 AM

All times are GMT. The time now is 01:22 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.