组合框下拉列表-记住最后一个“x”选择,宽度可设置为小于内容
在我们自己开发之前,我们正在寻找一个具有以下可选功能的组合框下拉列表:
- 组合框可以通过编程方式打开/关闭
- 下拉列表会记住最后的x(x由程序设置)用户选择和将它们显示在下拉列表的顶部,以便用户不必滚动浏览很长的列表。
- 下拉列表宽度可以通过编程方式设置,以便在未单击列表时它是一个比内容更小的宽度的固定宽度。但是,当用户单击下拉列表时,下拉列表将显示内容的完整宽度。
- 用户选择后能够在下拉列表中指定缩写。例如,这对于时区管理非常有用。
如果可行的话我们想使用 jQuery。到目前为止,我们对具有所有这些功能的小部件的搜索还没有结果,因此我们想先在这里询问。
这是我们如何使用该小部件的示例: 全球有 26 个时区的 400 多个时区城市,我们的用户需要能够从中进行选择。我们希望用户能够输入我们将搜索的字符串,作为滚动列表的替代方法。
在本例中,我们想要记住他们最后 5 个 TZ 选择,以便它们位于下拉列表的顶部。
例如:当小部件刚刚坐在那里时,IST 将显示在下拉列表中。 但是,当他们单击下拉菜单时,您会看到 [(GMT + 5.5) 印度标准时间,IST,印度钦奈]
before developing it ourselves, we are looking for a combo-box-drop-down-list with the following optional features:
- combo-box can be programmatically turned on/off
- drop down remembers the last x (x set by program) user selections and displays them at the top of the drop down list, so that the user does not have to scroll through a very long list.
- drop down list WIDTH is settable programmatically so that it is a fixed width that is less wide than the contents when the list has not been clicked on. But when the user clicks on the drop down, the drop down list shows the full width of the contents.
- Able to specify an abbreviation in the drop down list after the user has selected their choice. For example, this will be very useful for time zone management.
We want to use jQuery if feasible. So far our searches have been inconclusive for any widgets that have all of these features, so we thought to ask here first.
Here is an example of how we would use the widget:
There are over 400 time zone cities world wide across 26 time zones that a user of ours will need to be able to chose from. We want the user to be able to type in a string that we will search for as an alternative to scrolling the list.
In this case we want to remember their last 5 TZ selections so that they are at the top of the drop down list.
For example: IST is displayed in the drop down when the widget is just sitting there.
But when they click on the drop down you see [(GMT + 5.5) India Standard Time, IST, Chennai, India]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几年前我们使用了 Infragistics 和 Telerik 控件,它们非常好。
现在组件一也很好。查看他们网站上的免费演示以满足您的要求。
否则,您可以购买该产品并通过覆盖功能来根据您的要求进行定制。
We used Infragistics , Telerik controls few years back , they were pretty good.
Nowadays Component one is also very nice. Check the free demo on their websites to match your requirements.
Otherwise you can buy on of that products and customize to your requirements by overwriting the functionalities.