jQuery MiniUI
标题:
树形菜单如何根据选中的节点获取顶级菜单的ID
[打印本页]
作者:
.Net
时间:
2016-12-7 18:11:35
标题:
树形菜单如何根据选中的节点获取顶级菜单的ID
下面贴出代码:
<
div
id
=
"treegrid_Category"
class
=
"mini-treegrid"
style
=
"
width
:
100%
;
height
:
100%
;
"
url
=
"/Ajax/User/MenuList.aspx?method=MenuInfoList"
showtreeicon
=
"true"
treecolumn
=
"MenuName"
idfield
=
"MenuID"
textfield
=
"MenuName"
parentfield
=
"ParentID"
resultastree
=
"false"
expandonload
=
"true"
expandondblclick
=
"false"
expandonnodeclick
=
"true"
>
<
div
property
=
"columns"
>
<
div
type
=
"indexcolumn"
></
div
>
<
div
name
=
"MenuName"
field
=
"MenuName"
width
=
"250"
>
菜单名称 / 父路径
</
div
>
<
div
field
=
"UrlPath"
width
=
"200"
>
菜单地址
</
div
>
<
div
field
=
"OrderRank"
width
=
"80"
>
菜单排序
</
div
>
<
div
field
=
"Status"
width
=
"55"
renderer
=
"onIsStatusRenderer"
>
是否有效
</
div
>
<
div
field
=
"Start"
width
=
"80"
>
创建人
</
div
>
<
div
field
=
"CreatedOn"
width
=
"120"
dateformat
=
"yyyy-MM-dd hh:mm"
>
创建日期
</
div
>
<
div
field
=
"MenuMemo"
width
=
"100%"
>
备注信息
</
div
>
</
div
>
</
div
>
作者:
dforce
时间:
2016-12-8 09:53:50
什么是你说的顶级菜单的ID?
作者:
.Net
时间:
2016-12-8 10:57:54
dforce 发表于 2016-12-8 09:53
什么是你说的顶级菜单的ID?
已经解决了,多谢。
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2