获取CxDBTreeList所有父节点
2014-03-14 10:36
471 查看
function ShowCxDBTreeListNodeValues(ACxDBTreeList:
TcxDBTreeList): string;
var
S:string;
aNode:TcxTreeListNode;
i:Integer;
begin
if ACxDBTreeList.Visible then
if ACxDBTreeList.FocusedNode.HasChildren then //只显示最底层,如果要显示全部 去掉这个条件
Exit;
aNode:=ACxDBTreeList.FocusedNode;
for i:=aNode.Level downto 0 do
begin
if i=ACxDBTreeList.FocusedNode.Level then
S:=aNode.Values[1]
else
S:=aNode.Values[1]+'->'+S;
aNode:=aNode.Parent;
Result:=S;
end;
end;
TcxDBTreeList): string;
var
S:string;
aNode:TcxTreeListNode;
i:Integer;
begin
if ACxDBTreeList.Visible then
if ACxDBTreeList.FocusedNode.HasChildren then //只显示最底层,如果要显示全部 去掉这个条件
Exit;
aNode:=ACxDBTreeList.FocusedNode;
for i:=aNode.Level downto 0 do
begin
if i=ACxDBTreeList.FocusedNode.Level then
S:=aNode.Values[1]
else
S:=aNode.Values[1]+'->'+S;
aNode:=aNode.Parent;
Result:=S;
end;
end;
相关文章推荐
- Thinkphp的list_to_tree 实现无限级分类列出所有节点
- dev TreeList 获取可视区域节点方法
- TreeList获取节点中的值
- TreeList获取节点中的值
- DevExpress获取TreeList可视区域节点集合的实现方法
- 获取UltraWebTree指定节点的所有父节点内容
- TreeList获取节点中的值
- JQuery EasyUi Tree获取所有checkbox选中节点的id和内容
- JQuery Tree获取所有checkbox选中节点的id和内容
- [DevExpress]利用TreeListOperation获取勾选的节点
- easyui-tree获取当前选择节点的所有顶级父节点
- DevExpress实现TreeList向上递归获取公共父节点的方法
- 关于DEV里treelist获取节点ID
- Thinkphp的list_to_tree 实现无限级分类列出所有节点
- DevExpress实现TreeList向上递归获取符合条件的父节点
- [DevExpress]利用TreeListOperation获取勾选的节点集合
- 获取UltraWebTree指定节点的所有父节点内容
- aspxtreelist 新增节点时获取节点的级数
- Easyui Tree获取当前选择节点的所有顶级父节点
- aspxtreelist 新增节点时获取节点的级数