使用数据库中的项ID选择jqxtree节点

编程入门 行业动态 更新时间:2024-10-15 18:27:55
本文介绍了使用数据库中的项ID选择jqxtree节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好 我在SQL数据库中有一个名为Groups的表。带字段: Id标题ParentId 值正确显示在jqxTree中,但我需要当用户点击产品进行更新时,jqxTree会选择该产品组的当前节点,以便用户可以更改它。 提前感谢 b $ b 我尝试过:

Hello I have a table in SQL Data Base named "Groups". with fields : Id Title ParentId the values are shown in jqxTree correctly, but I need to when user clicks on a Product to Update it, jqxTree select the current node for the Group of that product so the user can change it or not. thanks in advance What I have tried:

$('#jqxTree').jqxTree('selectItem', element);

or

$('#jqxTree').jqxTree('select_node', element);

其中element是Product Group的Id字段。我可以正确获取Id但它不会在jqxTree中选择组。

where element is the "Id" field for Product Group. I can get the Id correctly but it will not select the group in jqxTree.

推荐答案

(' #jqxTree')。jqxTree(' selectItem',element); ('#jqxTree').jqxTree('selectItem', element);

or

(' #jqxTree')。jqxTree(' select_node',element); ('#jqxTree').jqxTree('select_node', element);

其中element是Id产品组的字段。我可以正确获取Id但它不会在jqxTree中选择组。

where element is the "Id" field for Product Group. I can get the Id correctly but it will not select the group in jqxTree.

根据文档 [ ^ ]它应该是 According to the documentation[^] it should be

更多推荐

使用数据库中的项ID选择jqxtree节点

本文发布于:2023-11-02 04:02:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551317.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:节点   数据库中   ID   jqxtree

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!