jsTree + jsTreeGrid->为新创建的节点渲染图标
我在管理面板中成功实现了 jsTree + jsTreeGrid 管理产品类别。 唯一的问题是,当我通过鼠标右键上下文菜单创建新节点时,新的 创建的行不包含在 jsTreeGrid 面板中设置图标的列。图标 基于 ID(链接到其他页面),因此在渲染图标时代码必须知道新创建节点的 ID。
请注意:页面刷新后,新节点的图标可见。当然。
非常感谢任何帮助。
I successfully implements jsTree + jsTreeGrid in admin panel for
managing categories for products.
The only one problem is, that when i create new node via right mouse button context menu, the newly
created row does not contain columns with icons set in jsTreeGrid panel. The icons
are ID based (linked to other pages), therefore while rendering icons code have to know ID of newly created node.
Please note: After page refresh icons for new node are visible. Of course.
Any help is really appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加新节点后以编程方式刷新 jsTree 怎么样?在 core 文档 中搜索
refresh
What about programmatically refreshing the jsTree after adding new node? Search for
refresh
in doc for core