Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One more question concerning datagrids 1

Status
Not open for further replies.

lucidtech

IS-IT--Management
Jan 17, 2005
267
US
I read somewhere, though now I cant remember where or how to do this, that you can insert a checkbox into a column of a datagrid. Any ideas?
 
ya it can be done. create a new movice clip instance. open up the linkage put in identifer call it 'CheckCellRenderer' and in the AS 2.0 class put 'mx.controls.cells.CheckCellRenderer'

var myColumn = new DataGridColumn("name");
myColumn.cellRenderer = "CheckCellRenderer";

datagrid.addColumn(myColumn);
 
Yes, thanks for the help. I just want to add one thing.. I spent hours trying to figure out why this didnt work, because I am stubborn and hate asking for help, especially a second time... but I did some research and it turns out the only thing I was doing wrong was forgetting to add a combobox to my library. Thank again.
 
That's definitely a bummer. Womblies didn't mention the library by name but he did tell you to do that.

womblies said:
create a new movice clip instance. open up the linkage put in identifer call it 'CheckCellRenderer' and in the AS 2.0 class put 'mx.controls.cells.CheckCellRenderer'

You can only do those things (except creating a new MC) in the library.

Glad you got it working though!:)
 
Im glad I got it to work too. But the problem wasnt the CheckCellRenderer at all, I had that all correct. What I didnt have was a checkbox in my library. So what I did was drag a texbox onto the stage, then simply deleted it. It remained in the library, and my program worked fine. Thank again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top