header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
shrikumar
Points:220
Posts:0
Answered

8/4/2010 7:29:29 AM

Title: need DataGrid ItemRenderer as3 code


Hi,

I want to create a flex DataGrid by using as3.
in one of the column i need to add a button by using ItemRenderer .

I need pure as3 code..

Can anyone send me?

Thanks in advance.....



1
Veer
Points: 480
Posts:0
Accepted Answer
8/4/2010 9:45:42 PM



Hi Kumar,

Try this code may your problem solved



var columnsArr:Array = dataGrid.columns;
var index:int = 4; // column index 
(  columnsArr[index] as DataGridColumn ).itemRenderer = new ClassFactory(ItemRender Class); // new ClassFactory(Custom Button Class);

for more details... http://livedocs.adobe.com/flex/3/html/help.html?content=cellrenderer_4.html may help you. Regards, Virat Patel

2
shrikumar
Points: 220
Posts:0
8/4/2010 9:47:29 PM



Thanks Veer.

3
Michelle
Points: 0
Posts:0
8/4/2010 11:31:17 PM



Cheak this link

You can find cool datagrid.
If you click demo you can see the showcase with code.
Try this out!

http://actsone-ria.blogspot.com/p/gridone.html

4
shrikumar
Points: 220
Posts:0
8/4/2010 11:42:11 PM



Thanks Michelle,
But GridOne is not free as well as opensource...
so no use... :)


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+4 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions