jQuery MiniUI

 找回密码
 立即注册
查看: 3219|回复: 6
打印 上一主题 下一主题

关于outlooktree [复制链接]

Rank: 3Rank: 3

跳转到指定楼层
楼主
发表于 2012-9-12 17:05:47 |只看该作者 |倒序浏览
outlooktree    怎么默认展开 第二个节点啊

Rank: 9Rank: 9Rank: 9

沙发
发表于 2012-9-12 18:15:00 |只看该作者
加载的节点加expanded属性:
{
  id: ...,  expanded: true, ...
}

Rank: 3Rank: 3

板凳
发表于 2012-9-13 16:57:42 |只看该作者
niko 发表于 2012-9-12 18:15
加载的节点加expanded属性:
{
  id: ...,  expanded: true, ...

我设置了这个属性没用的啊  

expanded:true
这个设置了,没用

Rank: 8Rank: 8

地板
发表于 2012-9-13 17:09:11 |只看该作者
cpy1989 发表于 2012-9-13 16:57
我设置了这个属性没用的啊  

expanded:true

[{"name":"行政部", "id":"xz", expanded: true}]
类似这样,加在父节点上

Rank: 3Rank: 3

5#
发表于 2012-9-13 17:33:08 |只看该作者
factory 发表于 2012-9-13 17:09
[{"name":"行政部", "id":"xz", expanded: true}]
类似这样,加在父节点上

   


我的json代码里已经  设置了  '权限管理'  这个节点为    expanded: true   了 ,但没用啊  ,请教,谢谢


[
    {id: "user", text: "用户管理",expanded: true},
        
    {id: "lists", text: "Lists", pid: "user" },
            
    {id: "datagrid", text: "DataGrid", pid: "lists"},            
    {id: "tree", text: "Tree" , pid: "lists"},
    {id: "treegrid", text: "TreeGrid " , pid: "lists"},
        
    {id: "layouts", text: "Layouts", expanded: false, pid: "user"},
        
    {id: "panel", text: "Panel", pid: "layouts"},
    {id: "splitter", text: "Splitter", pid: "layouts"},
    {id: "layout", text: "Layout ", pid: "layouts"},
        
    { id: "right", text: "权限管理",expanded: true},
        
    {id: "base", text: "Base", expanded: false, pid: "right" },
               
    {id: "ajax", text: "Ajax", pid: "base"},
    {id: "json", text: "JSON", pid: "base"},
    {id: "date", text: "Date", pid: "base"},
        
    {id: "forms", text: "Forms", expanded: false, pid: "right"},
               
    {id: "button", text: "Button", pid: "forms"},
    {id: "listbox", text: "ListBox", pid: "forms"},
    {id: "checkboxlist", text: "CheckBoxList", pid: "forms"},
    {id: "radiolist", text: "RadioList", pid: "forms"},
    {id: "calendar", text: "Calendar", pid: "forms"}               
]




附件: 你需要登录才可以下载或查看附件。没有帐号?立即注册

Rank: 9Rank: 9Rank: 9

6#
发表于 2012-9-14 09:27:13 |只看该作者
给outlooktree加属性:
activeIndex="1"

Rank: 3Rank: 3

7#
发表于 2012-9-14 10:08:31 |只看该作者
niko 发表于 2012-9-14 09:27
给outlooktree加属性:
activeIndex="1"

activeIndex="1"    这样对了,谢谢  

Archiver|普加软件

GMT+8, 2024-11-26 13:46 , Processed in 1.044408 second(s), 10 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部