跟踪在数据网格中选择一个自定义itemrenderer的问题 [英] follow up question problem with selecting a custom itemrenderer in a datagrid
本文介绍了跟踪在数据网格中选择一个自定义itemrenderer的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经发布了一个自定义itemRenderer的两个问题看到这个发布。我的主要问题是,它总是选择一个错误的行(一个在我选择的一个)。我现在意识到,当我将itemRenderer的内容保存到dataProvider时,会发生这种情况。如果我编写这个部分,dataGrid将按预期工作...
I have posted two problems with a custom itemRenderer see this post. My primary Problem is, that it always selects a wrong line (one under the one I select). I now realized that this happens, when I save back the content of the itemRenderer to the dataProvider. If I code this part out, the dataGrid works as expected...
这对你有意义吗?
谢谢
Markus
thanks Markus
推荐答案
这可能不是问题,但我建议在createChildren方法中添加子项,如下所示:
This is probably not the problem, but I would recommend adding children in the createChildren method, like this:
override protected function createChildren() : void {
correctAnswer = new CheckBox();
addChild(correctAnswer);
choiceLabel = new Label();
addChild(choiceLabel);
}
这篇关于跟踪在数据网格中选择一个自定义itemrenderer的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文