开发者

How to access datagroup's Itemrenederer's component?

开发者 https://www.devze.com 2023-01-03 07:20 出处:网络
I have a datagroup where I use a custom itemRenderer with a datagrid inside. What I want is to access each datagroup\'s itemRenderer\'s datagrid and get it\'s da开发者_如何转开发taProvider

I have a datagroup where I use a custom itemRenderer with a datagrid inside. What I want is to access each datagroup's itemRenderer's datagrid and get it's da开发者_如何转开发taProvider

All I know is that you can access the ItemRenderer by using myDataGroup.getElementAt(index)

Thanks in advance


I wonder why you need to do this. Wouldn't your dataGroup already have access to all the data it is passing down into the renderers?

That said something like this should work:

(myDataGroup.getElementAt(index) as myCustomItemRenderer).myDataGrid.dataProvider 
0

精彩评论

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

关注公众号