jQuery MiniUI

标题: 关于outlooktree [打印本页]

作者: cpy1989    时间: 2012-9-12 17:05:47     标题: 关于outlooktree

outlooktree    怎么默认展开 第二个节点啊


作者: niko    时间: 2012-9-12 18:15:00

加载的节点加expanded属性:
{
  id: ...,  expanded: true, ...
}
作者: cpy1989    时间: 2012-9-13 16:57:42

niko 发表于 2012-9-12 18:15
加载的节点加expanded属性:
{
  id: ...,  expanded: true, ...

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

expanded:true
这个设置了,没用
作者: factory    时间: 2012-9-13 17:09:11

cpy1989 发表于 2012-9-13 16:57
我设置了这个属性没用的啊  

expanded:true

[{"name":"行政部", "id":"xz", expanded: true}]
类似这样,加在父节点上
作者: cpy1989    时间: 2012-9-13 17:33:08

factory 发表于 2012-9-13 17:09
[{"name":"行政部", "id":"xz", expanded: true}]
类似这样,加在父节点上

[attach]613[/attach]   


我的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"}               
]





作者: niko    时间: 2012-9-14 09:27:13

给outlooktree加属性:
activeIndex="1"
作者: cpy1989    时间: 2012-9-14 10:08:31

niko 发表于 2012-9-14 09:27
给outlooktree加属性:
activeIndex="1"

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




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2