This content has been marked as final. Show 6 replies
Hay, you need to create a custom component with as many as buttons and input possible and use itemRenderer inside of your datagrid.
Do you think you could be more specific or add a code example? I'm really in the dark on what you mean.
Okay, forget that I said buttons.
Lets say I had a bunch of strings that I wanted to drop into a single item. And I wanted them to insert based on alpha order. How would I go about that?
This time I really did got what you want. What is the single item are you talking about. It seemed you already have those string and I assume they are in the db. Then you should sorted them on the data query like in alpha or the way you want and use the return query as datasource..
Well, specifically. They're binded data (swfs) I need the ability to add as many of these as possible to a datagrid. I'll be extracting them and using them in a list.
So to break it down, I've got a bunch of different strings I need to add to a datagrid item. I need to add these in the proper order. I then need to pop them back out to a list (I know how to do this part).
Basically what I'm going on right now, is I'm calling a flashfile.source from a selected item. Then I'm adding it into a datagrid, I just need to know how to add it in without destroying the current items.
Would something work where I'd ask for the current data datagrid.selectedItem.column and then also add the new data work?
Thanks for your help miaomm, I'd really appreciate some code showing this .
Sounds like you need a binded ArrayCollection which you can manipulate as the source of your main datagrid. Inside of your datagrid you need a custome component to respond to the undecided items to display.
From your selectedIndex to push the data into your ArrayCollection in the right place.
So after you pushing new data into the ArrayCollection and then you will be able to change your data in datagrid without "destroying the current item"
If you have your data in the ArrayCollection then you can sorting collection on the back with something like
var sort:Sort = new Sort();