开发者

How to set a style for a cell in datagrid

开发者 https://www.devze.com 2022-12-18 14:43 出处:网络
I am using a datagrid in flex and need t开发者_运维问答o render each cell with a different style.

I am using a datagrid in flex and need t开发者_运维问答o render each cell with a different style. What could be the best way to set a style to a perticular cell in datagrid/advanced datagrid (flex)?

I think one possible option can be extend the datagrid and override the drawRowBackgroungd function. Apart from this can i use some custom item renderer or some property similar to label function of a series, there it used to return label here we need a style.

Thanks in advance.


I think Item renderers are your best option, you can use a canvas as your renderer and do whatever to it based on the data of that cell.

0

精彩评论

暂无评论...
验证码 换一张
取 消