开发者

Flex DataGrid labelFunction not getting called

开发者 https://www.devze.com 2023-01-05 12:43 出处:网络
I have a DataGrid where one of the columns has a labelFunction.When I run the application a scrollbar shows up in the DataGrid indicating to me that it has data but there is nothing in the DataGrid.Wh

I have a DataGrid where one of the columns has a labelFunction. When I run the application a scrollbar shows up in the DataGrid indicating to me that it has data but there is nothing in the DataGrid. When I scroll items start showing up. When I Debugged it I noticed that the labelFunction was never being called until I started scrolling. Does a开发者_JAVA百科nyone know why this is happening?


If you are assigning labelFunction at a later time using ActionScript after setting the dataProvider, try calling datagrid.invalidateList() or datagrid.updateList() after assigning it - these functions force a refresh of all the rows.

0

精彩评论

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