您好 我在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节点
发布评论