Flex 4:帮助定位物体

发布于 2024-09-28 08:01:09 字数 650 浏览 0 评论 0原文

我发现这个令人惊奇的代码可以制作带有复选框的下拉列表: 单击此处

我实现了它并且它有效,除了一个细节,我一生都无法取回所选复选框的数组。

我的实现如下:

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温馨耳语 2024-10-05 08:01:10

如果您的项目渲染器正确地将其检查状态报告回您的数据提供者,那么它就像迭代 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文