<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2010/02/06/setting-the-horizontal-scroll-policy-on-a-spark-dropdownlist-control-in-flex-4/ -->
<s:Application name="Spark_DropDownList_scroller_horizontalScrollPolicy_test"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.core.ScrollPolicy;
]]>
</fx:Script>
<s:DropDownList id="ddl"
width="100"
horizontalCenter="0" top="20"
open="ddl.scroller.setStyle('horizontalScrollPolicy', ScrollPolicy.OFF);">
<s:dataProvider>
<s:ArrayList source="[Accordion,ApplicationControlBar,Alert,Box,Button,ButtonBar,Canvas,ColorPicker]" />
</s:dataProvider>
</s:DropDownList>
</s:Application>
如果要设置没有垂直滚动条: open="ddl.scroller.setStyle('verticalScrollPolicy', ScrollPolicy.OFF);"
分享到:
相关推荐
DropDownList
dropdownlist下拉框实现多选
dropdiwnlist的方法重写,实现listbox下拉框制定的值实现只读、不可选择的技巧(重写DROPDOWNLIST)
C#编程 WinForm窗体开发 DropDownList(源码)C#编程 WinForm窗体开发 DropDownList(源码)C#编程 WinForm窗体开发 DropDownList(源码)C#编程 WinForm窗体开发 DropDownList(源码)C#编程 WinForm窗体开发 DropDownList...
设置DropDownList的当前选项
jquery异步绑定dropdownlist
asp.net Dropdownlist结合CheckBoxList多选下拉框
DropDownList 3级联动,非常实用
DropDownList分组扩展DropDownList分组扩展DropDownList分组扩展DropDownList分组扩展
调用方法:DropDownList.bind(selectId).例如: --------------------------------- DropDownList2: <option selected="selected" value="35">gdfgfdgjjjjjjjjjjjj └All Categories ...
在ASP.NET 2.0 网站页面的开发过程中,经常需要把DropDownList等列表类控件的SelectedValue值设置为一个从数据库或其他地方读取出来的值。 最简单的办法就是直接进行指定: DropDownList1.SelectedValue = "中国"; ...
简单使用DropDownList实现级连,手动添加下拉列表的值
级联菜单DropDownList 级联菜单DropDownList 级联菜单DropDownList 级联菜单DropDownList 级联菜单DropDownList 级联菜单DropDownList 级联菜单DropDownList
三层结构 DropDownList无极分类 用泛型 DropDownList无极分类 用泛型 DropDownList无极分类 用泛型 DropDownList无极分类 用泛型
重写 DropDownList 添加optgroup以及为ListItem 加式样(例如 背景色,前景色等)
DropDownList与TextBox互动
DropdownList绑定数据的方法
重写DropDownList控件 可以输入字符
在.net 中点击清空按钮可以清空dropdownlist里面值得方法
对dropdownList的优化改编,在DropDownList中添加了分组功能,优化了DropdownList单分组的尴尬局面