actionscript 3 - Item renderer for dynamic DataGrid -


i have problem dynamic item renderer data grids elements. i'm initialiizng columns in data grid dynamically, this:

for each (var item in _collection) {     var i:myclass= item myclass;     var dgc:datagridcolumn = new datagridcolumn(i.id.tostring());     dgc.headertext = i.name;     cols.push(dgc); } _mydatagrid.columns = cols; 

to every cell want pass integer. when has -1 value, cell should display specific text when it's 0 or 1 should contain checkbox. know how can achieve that? don't ideas now, despite thinking quite long time. can me this?

create itemrenderer 2 states. 1 state checkbox text


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -