Flex 4:帮助定位物体
我发现这个令人惊奇的代码可以制作带有复选框的下拉列表: 单击此处
我实现了它并且它有效,除了一个细节,我一生都无法取回所选复选框的数组。
我的实现如下:
<local:MultiSelectionDropDown maxHeight="300" x="181" y="-7" width="233" requireSelection="false" itemRenderer="myComponents.MultiSelectItemRenderer" skinClass="myComponents.MultiSelectionDropDownListSkin" dataProvider="{GetIsList.lastResult.ReportFilterList.ReportFilter}" id="dropISLIST" color="#000000"/>
我不知道要调用什么来获取 dropISLIST 以返回所选复选框及其值的列表。
有没有人有什么想法。
请提前感谢您提供的任何帮助......
I found this amazing code to make a dropdownlist with check boxes: Click here
I implemented it and it works, except for one detail I cant for the life of me get the array of selected checkboxes back.
I have implemented as follows:
<local:MultiSelectionDropDown maxHeight="300" x="181" y="-7" width="233" requireSelection="false" itemRenderer="myComponents.MultiSelectItemRenderer" skinClass="myComponents.MultiSelectionDropDownListSkin" dataProvider="{GetIsList.lastResult.ReportFilterList.ReportFilter}" id="dropISLIST" color="#000000"/>
What I cant figure out is what to call to get dropISLIST to give me back the list of selected check boxes and their values.
Does anyone have any ideas.
Please and thank you in advance for any help you can provide....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的项目渲染器正确地将其检查状态报告回您的数据提供者,那么它就像迭代 dropISLIST.dataProvider 一样简单。如果数据提供程序未反映下拉列表中显示的内容,那么您的首要任务是确保项目渲染器正常工作。如果您遇到问题,请随时分享您的项目渲染器代码,我们可以帮助您解决问题。
If your item renderers are properly reporting their checked state back to your data provider, then it is as simple as iterating through dropISLIST.dataProvider. If the data provider does not reflect what is shown in the droplist, then your first job is to make sure your item renderers are working correctly. If you are having trouble, feel free to share your code for the item renderer and we can help you sort it out.