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 ...
随机推荐
- SQLite日期时间函数
SQLite日期时间函数 SQLite支持以下五个日期时间函数: date(timestring, modifier, modifier, …) time(timestring, modifier, ...
- C# windows 桌面控件的扩展
今天一同事 需要一个Windows from下 GridView的嵌套的控件,于是就去找了以前自己写的一些form 控件,发现居然没有人下载.同时查找以前的下载包也比较费时,于是乎就搞一个文章. 运行 ...
- [leetcode]Maximal Rectangle @ Python
原题地址:https://oj.leetcode.com/problems/maximal-rectangle/ 题意:Given a 2D binary matrix filled with 0's ...
- 【Javascript Demo】图片瀑布流实现
瀑布流就是像瀑布一样的网站——丰富的网站内容,特别是绚美的图片会让你流连忘返.你在浏览网站的时候只需要轻轻滑动一下鼠标滚轮,一切的美妙的图片精彩便可呈现在你面前.瀑布流网站是新兴的一种网站模式——她的 ...
- ZOJ 3827 Information Entropy 水
水 Information Entropy Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge Informati ...
- OpenCV 学习笔记 04 深度估计与分割——GrabCut算法与分水岭算法
1 使用普通摄像头进行深度估计 1.1 深度估计原理 这里会用到几何学中的极几何(Epipolar Geometry),它属于立体视觉(stereo vision)几何学,立体视觉是计算机视觉的一个分 ...
- vue 更新了vue-cli到最新版本后引发的问题: require和import、vue-loader的问题
"vue-loader": "^12.1.0", "vue-loader": "^12.1.0", "vue- ...
- c链表之oc AutoReleasePool
直接贴 原文吧: http://blog.sunnyxx.com/2014/10/15/behind-autorelease/
- java协变逆变,PECS
public static void main(String[] args) { // Object <- Fruit <- Apple <- RedApple System.out ...
- vue中使用localstorage
1.store.js(读取写入到localstorage) const STORAGE_KEY="todos-vuejs" export default{ fetch(){ ret ...