English 中文(简体)
如何在无线电台上播音 灵活数据网中的投放器
原标题:How to loop over radiobuttons Itemrenderers in datagrid in Flex

Hello能帮助在灵活数据和元数据交换数据电网的射电器上登机吗?

我的数据网编码如下:

<mx:DataGridColumn width="20" headerText="isDefault" dataField="IS_DEFAULT">
                            <mx:itemRenderer>
                                <fx:Component>
                                    <mx:HBox horizontalAlign="left">
                                        <fx:Script>
                                            <![CDATA[
                                                import mx.controls.Alert;
                                                import mx.controls.listClasses.ListData;


                                                protected function chk1_changeHandler(event:Event):void
                                                {

                                                } 

                                            ]]>
                                        </fx:Script>
                                        <mx:RadioButton id="chk1" selected="{data.IS_DEFAULT ==  N  ? false : true}"
                                                        groupName="{outerDocument.rbg11}" change="chk1_changeHandler(event)" horizontalCenter="0"/>
                                            </mx:HBox>
                                </fx:Component>
                            </mx:itemRenderer>
                        </mx:DataGridColumn>



Thanks for helping.
问题回答

为什么没有将核对箱项目内线发送器的状态与数据网数据提供商联系起来? 是否有其他某种功能,你特别试图通过每个检查箱控制进入? 如果不是的话,我只建议把选定的/非选定的财产添加到贵国数据提供人拥有的并且对网上检查箱中“选定的”财产具有约束性的任何部分:

<mx:RadioButton id="chk1" selected="{data.selected_property}"
                                    groupName="{outerDocument.rbg11}" change="chk1_changeHandler(event)" horizontalCenter="0"/>

这样,如果你想要在数据网控制中控制每个检查箱的“状态”,你就可以在数据提供者一级这样做。 您的chk1_changeHandler()将只是为了选择/非选择价值:

protected function chk1_changeHandler(event:Event):void{
    if(data.selected_property == true){
        data.selected_property = false;
    }else{
        data.selected_property = true;
    }
}

我读到一些微妙的弹性3约束细微细微细微细微的细微细微差别,如果你死在 m(~3.x)上,而不是4.6:





相关问题
WPF: Adding Button Column to Datagrid

How can I add a Button column to a Datagrid programmatically? I want to do this through code in the code-behind file. Also i want to selectively enable or disable this button based on record (If ...

Silverlight Datagrid RowEditEnded

I have a SL DataGrid that has two columns. I need to be able to catch any change to the a row and save it into an undo stack. I setup the event RowEditEnded and tried to add to the undo stack there. ...

WPF Keep column sorting with Datagrid

I have several datagrid where I need to update the informations. Things is, since more than one person works on the system at the same time, the datagrid need to be refreshed on a regular basis. When ...

热门标签