组合框下拉列表-记住最后一个“x”选择,宽度可设置为小于内容

发布于 2024-09-25 18:08:24 字数 573 浏览 1 评论 0原文

在我们自己开发之前,我们正在寻找一个具有以下可选功能的组合框下拉列表:

  1. 组合框可以通过编程方式打开/关闭
  2. 下拉列表会记住最后的x(x由程序设置)用户选择和将它们显示在下拉列表的顶部,以便用户不必滚动浏览很长的列表。
  3. 下拉列表宽度可以通过编程方式设置,以便在未单击列表时它是一个比内容更小的宽度的固定宽度。但是,当用户单击下拉列表时,下拉列表将显示内容的完整宽度。
  4. 用户选择后能够在下拉列表中指定缩写。例如,这对于时区管理非常有用。

如果可行的话我们想使用 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:

  1. combo-box can be programmatically turned on/off
  2. 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.
  3. 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.
  4. 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 技术交流群。

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

发布评论

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

评论(1

笑着哭最痛 2024-10-02 18:08:39

几年前我们使用了 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.

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