findpanel 的相关代码
https://blog.csdn.net/zengcong2013/article/details/43118189
In addition to this method,
you can use the following controller methods to switch the visibility of the Find Panel and customize its search string:
ClearFindFilterText, GetFindFilterText, ShowFindPanel, HideFindPanel, and IsFindPanelVisible.
清空搜索内容
cxGridDBTV.DataController.ClearFindFilterText;
用代码执行findpanle的功能(默认的findpanle太占地方了,可以自己新建一个edit1,放到cxgrid的水平滚动条,可以启用数据导航功能,默认有属性设置间距的)
var
AFindPanel: TcxGridFindPanel;
begin
AFindPanel := TcxGridFindPanel.Create(<AcxGridDBTableView>.Controller);
<AcxGridDBTableView>.Controller.ApplyFindFilterText(<your text>);
end;
判断是否聚焦
type
TcxGridTableControllerAccess = class(TcxGridTableController);
procedure TForm1.Timer1Timer(Sender: TObject);
var
AEdit: TcxGridFindPanelMRUEdit;
begin
AEdit := TcxGridTableControllerAccess(cxGrid1DBTableView1.Controller).FindPanel.Edit;
if (AEdit <> nil) and AEdit.Focused then
Caption := '+'
else
Caption := '-';
end;
禁用最近访问历史记录
type
TcxGridTableControllerAccess = class(TcxGridTableController); procedure TForm1.FormCreate(Sender: TObject);
begin
TcxGridTableControllerAccess(cxGrid1DBTableView1.Controller).FindPanel.Edit.Properties.ImmediateDropDownWhenKeyPressed := False;
TcxGridTableControllerAccess(cxGrid1DBTableView1.Controller).FindPanel.Edit.Properties.Buttons[].Visible := False;
end;
启用扩展语法
<AcxGridDBTableView>.FindPanel.UseExtendedSyntax := True; //enable this option
扩展语法的使用规则
Additional information: Use the new Options.UseExtendedSyntax property to enable the extended syntax for Find Panel search strings, allowing end-users to apply multiple conditions. According to the extended syntax, words separated by the space character are treated as individual conditions combined by the OR logical operator. The grid shows records that match at least one of these conditions. The extended syntax includes support for the following specifiers and wildcards:
- The "+" specifier. Preceding a condition with this specifier causes the grid to display only records that match this condition. The "+" specifier implements the logical AND operator. There should be no space character between the "+" sign and the condition.
- The "–" specifier. Preceding a condition with "–" excludes records that match this condition from search results. There should be no space between the "–" sign and the condition.
- The percent ("%") wildcard. This wildcard substitutes any number of characters in a condition.
- The underscore ("_") wildcard. This wildcard represents any single character in a condition. For more information about the extended syntax, refer to the corresponding section in the "Find Panel" help topic.
翻译按钮中文
dxCore, cxGridStrs; initialization
cxSetResourceString(@scxGridFindPanelClearButtonCaption, '清空');
cxSetResourceString(@scxGridFindPanelFindButtonCaption , '搜索');
findpanel 的相关代码的更多相关文章
- [ARM] Cortex-M Startup.s启动文件相关代码解释
1. 定义一个段名为CSTACK, 这里: NOROOT表示如何定义的段没有被关联,那么同意会被优化掉,如果不想被优化掉就使用ROOT. 后面的括号里数字表示如下: (1):这个段是2的1次方即2字节 ...
- Kafka Producer相关代码分析【转】
来源:https://www.zybuluo.com/jewes/note/63925 @jewes 2015-01-17 20:36 字数 1967 阅读 1093 Kafka Producer相关 ...
- 命令行方式使用abator.jar生成ibatis相关代码和sql语句xml文件
最近接手一个老项目,使用的是数据库是sql server 2008,框架是springmvc + spring + ibatis,老项目是使用abator插件生成的相关代码,现在需要增加新功能,要添加 ...
- myBatis自动生成相关代码文件配置(Maven)
pom.xml文件添加配置 <build> <finalName>generator</finalName> <plugins> <!-- mav ...
- 临时2级页表的初始化过程 head_32.S 相关代码解释
page_pde_offset = (__PAGE_OFFSET >> 20); /* __PAGE_OFFSET是0xc0000000,page_pde_offset = 3072 = ...
- 使用Mybatis Generator自动生成Mybatis相关代码
本文将简要介绍怎样利用Mybatis Generator自动生成Mybatis的相关代码: 一.构建一个环境: 1. 首先创建一个表: CREATE TABLE pet (name VARCHAR(2 ...
- K:树、二叉树与森林之间的转换及其相关代码实现
相关介绍: 二叉树是树的一种特殊形态,在二叉树中一个节点至多有左.右两个子节点,而在树中一个节点可以包含任意数目的子节点,对于森林,其是多棵树所组成的一个整体,树与树之间彼此相互独立,互不干扰,但其 ...
- js 横屏 竖屏 相关代码 与知识点
<!DOCTYPE html> <html> <head> <title></title> </head> <body&g ...
- 转:关于Latent Dirichlet Allocation及Hierarchical LDA模型的必读文章和相关代码
关于Latent Dirichlet Allocation及Hierarchical LDA模型的必读文章和相关代码 转: http://andyliuxs.iteye.com/blog/105174 ...
随机推荐
- 调用 微信接口报错 {"errcode":48001,"errmsg":"api unauthorized, hints: [ req_id: 1QoCla0699ns81 ]"}
如下截图,仅为备份,本文转载地址: http://www.cnblogs.com/liaolongjun/p/6080240.html 以下正文↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ ...
- 【转】浅谈分布式服务协调技术 Zookeeper
非常好介绍Zookeeper的文章, Google的三篇论文影响了很多很多人,也影响了很多很多系统.这三篇论文一直是分布式领域传阅的经典.根据MapReduce,于是我们有了Hadoop:根据GFS, ...
- Altium Designer 13 安装完整元件库
Altium Designer更新的非常快,都快赶上chrome了,13出来没多久14又出来了,之前一直用AD9.4,算是10之前的最后一个版本,也是很经典的一个版本.安装新版本后看到在目录结构上有些 ...
- ThinkPhp 使用PhpExcel导出导入多语言文件
在ThinkPHP 里已经实现了多语言功能,只要在指定的目录下创建对应的语言文件并填充内容,即可实现多语言功能 而多语言的翻译却是一个很麻烦的事情,因为客户特定的行业问题导致我们翻译可能是不准确的 于 ...
- linux,日志查找技巧
1.查询日志中含有某个关键字的信息 cat app.log |grep 'error' 2.查询日志尾部最后10行的日志 tail -n 10 app.log 3.查询10行之后的所有日志 tail ...
- Redis更新的正确方法
原文(缓存更新的套路):看到好些人在写更新缓存数据代码时,先删除缓存,然后再更新数据库,而后续的操作会把数据再装载的缓存中.然而,这个是逻辑是错误的.试想,两个并发操作,一个是更新操作,另一个是查询操 ...
- .Net学习资料
1.博客系列文章 (1)设计模式 吕震宇 设计模式 张逸:晴窗笔记 Design & Pattern 梦幻Dot Net .Net设计模式 李会军 .NET设计模式系列文章 ...
- Vue 温故而知新 props如何双向属性绑定
传送门:https://cn.vuejs.org/v2/guide/components-custom-events.html https://segmentfault.com/q/101000001 ...
- mvc4 强大的导出和不需要上传文件的批量导入EXCEL--SNF快速开发平台3.1
数据的导入导出,在很多系统里面都比较常见,这个导入导出的操作,在Winform里面比较容易实现,但在Web上我们应该如何实现呢?本文主要介绍利用MVC4+EasyUI的特点,并结合文件上传控件,实现文 ...
- 为什么zookeeper会导致磁盘IO高【转】
由于早期的storm版本心跳信息严重依赖zookeeper,心跳风暴会导致zookeeper的事务日志频繁的写磁盘,带来的问题首当其冲的是磁盘IO会爆掉. 优化思路 将zookeeper事务的日志放入 ...