Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持数据异步加载吗? #16

Closed
zjfsdnu opened this issue Jul 19, 2017 · 1 comment
Closed

支持数据异步加载吗? #16

zjfsdnu opened this issue Jul 19, 2017 · 1 comment

Comments

@zjfsdnu
Copy link

zjfsdnu commented Jul 19, 2017

类似于 #9 但不需要一直更新
我们用树来显示用户信息 可能有10万 分6到7层 bs使用的ztree实现的
每点击展开一层 请求网络数据
不知道如何添加点击事件 请指教

@shineM
Copy link
Owner

shineM commented Jul 19, 2017

首先需要调用treeNode.setItemClickEnable(false),让自带的点击展开失效,这样你就能自己接管点击请求网络成功再展开的逻辑了,点击事件在binder中的bindView添加,至于异步直接给TreeView加锁就好了

@zjfsdnu zjfsdnu closed this as completed Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants