-
combo box in datagrid
Hi All,
Can some one please direct me to a example where a combo box has been inserted in a datagrid using as3 in CS4. I have a idea that it can be done using the cellrenderer, but i am not able to figure out how to achieve it. i tried searching on net but could not find any working example.
I am working on a project where there are mutiple rows in the datagrid, and the values of the datagrid item can be changed using the combo box inside it.
I have just started on actionscript so not much experience on that part. I have been searching on net for quite few thing and working them out.
if some one can provide me a simple example of this, that would be gr8.
thanks
-
Senior Member
- The right of the People to create Flash movies shall not be infringed. -
-
the example given does not contain combo box sample. i was looking something similar to this, but this is in as2.
http://www.adobe.com/support/documen...8/samples.html
my app need 3 columns of the combo box.
can some one please help me on this.
-
Senior Member
From the example you can find out how to do it.
I wrote a blog article how to do that. However, I used a checkbox, since that is what most users in my experience want. You can replace the checkbox with a combobox easily in that example.
http://flashscript.biz/flblogger/
Last edited by cancerinform; 02-12-2010 at 08:07 AM.
- The right of the People to create Flash movies shall not be infringed. -
-
but what if I want to add the one linkButton on 2 columns - column merge but not for all rows, suppose only for the even ones in the datagrid? is it possible?
thanks, Stephanie
-
Senior Member
You determine by addItem, where the icon will be added:
var dpataProvider = new DataProvider ;
dp.addItem ({no:"1",item:"Apples",price:"$1,50",data:"MyIcon" });
dp.addItem ({no:"2",item:"Oranges",price:"$0.89"});
- The right of the People to create Flash movies shall not be infringed. -
-
Originally Posted by cancerinform
From the example you can find out how to do it.
I wrote a blog article how to do that. However, I used a checkbox, since that is what most users in my experience want. You can replace the checkbox with a combobox easily in that example.
http://flashscript.biz/flblogger/
sorry for late replying, was busy in other stuff.
i saw the example, but i am not able to use it for my purpose.
what i have done is added a datagrid onto the stage, and now want to add the cellrenderer. cannot make much changes to my datagrid code.
i tried creating a sample for only the datagrid, but nothing help.
i am trying to attach the sample datagrid fla but not able to upload as its bigger in size limit, can you please help me on this to add the combo box in one column, so that from it i can add that it to multiple column.
i am online on amarkoli@yahoo.co.in, can you please help me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|