Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-04-2008, 01:30 PM   #1
carriker
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:

http://www.adobe.com/support/documen...ponent_samples

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.

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

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
Reply


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 08:50 PM
ComboBox Cell Rendering, Problems loading values into it mwiley43 Components 2 10-30-2006 06:46 PM
Communicate b/w datagrid and cell renderer mike k ActionScript 2.0 0 02-27-2006 11:26 AM
Radio Cell Renderer ScarletPimperinel ActionScript 1.0 (and below) 0 01-05-2006 09:39 AM
ComboBox in a cell of DataGrid????? Komal Components 3 02-08-2005 09:05 AM


All times are GMT. The time now is 08:28 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, 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.