是否有属性可以通过包含文本在 janus gridex 中的值列表中搜索

发布于 2025-01-16 11:17:23 字数 668 浏览 3 评论 0原文

我在 janus gridex 中绑定了一个带有值列表的组合。组合绑定成功。但当我从这个组合中搜索时,我遇到了一个问题。它总是使用 BeginWith 值进行搜索。我想应用包含搜索的搜索。我的代码是

grdFreight.RootTable.Columns["Transporter"].ColumnType = Janus.Windows.GridEX.ColumnType.Text; grdFreight.RootTable.Columns["Transporter"].HasValueList = true; grdFreight.RootTable.Columns["运输商"].LimitToList = true; grdFreight.RootTable.Columns["Transporter"].EditType = Janus.Windows.GridEX.EditType.Combo; grdFreight.RootTable.Columns["运输者"].Caption = "运输者"; grdFreight.RootTable.Columns["Transporter"].ValueList.PopulateValueList(dtAccountlst.DefaultView, "Id", "AccountTitle"); grdFreight.RootTable.Columns["运输机"].Width = 120;

我想对包含搜索的值列表应用搜索。

I am bindind a combo in janus gridex with value list. combo binding successfully. But i face a problem when i am searching from this combo. it always search with BeginWith value. I want to apply search that search with containes. My Code is

grdFreight.RootTable.Columns["Transporter"].ColumnType = Janus.Windows.GridEX.ColumnType.Text;
grdFreight.RootTable.Columns["Transporter"].HasValueList = true;
grdFreight.RootTable.Columns["Transporter"].LimitToList = true;
grdFreight.RootTable.Columns["Transporter"].EditType = Janus.Windows.GridEX.EditType.Combo;
grdFreight.RootTable.Columns["Transporter"].Caption = "Transporter"; grdFreight.RootTable.Columns["Transporter"].ValueList.PopulateValueList(dtAccountlst.DefaultView, "Id", "AccountTitle");
grdFreight.RootTable.Columns["Transporter"].Width = 120;

i want to apply search on value list that search with containes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

空宴 2025-01-23 11:17:23

您无法“搜索”UIComboBox 控件。
ComboBox 选择行为是 TypeAhead,因此它使用开始方式工作。

即使您尝试过滤组合框数据源,在显示其他行值时也会遇到麻烦,因为它的显示成员是任何 FormattingRow 事件中的用户,并且如果过滤器删除数据视图中的行,您将获得值而不是文本。

我认为你不能按照你想要的方式去做。
:(

You cannot "search" into a UIComboBox control.
The ComboBox select behavior is TypeAhead, so it works using a begins with way.

Even if you try to filter the combobox datasource you will have troubles in displaying other row values, since it's displaymember is user in any FormattingRow event and if the filter removes rows in your dataview, you'll get the value instead of text.

I think you can't do it in the way you want.
:(

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