文件名称:jqgrid Tree
文件大小:1.46MB
文件格式:ZIP
更新时间:2021-05-07 09:05:50
jqgrid
<html xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My First Grid</title> <link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.min14ed.css" /> <link rel="stylesheet" type="text/css" media="screen" href="jqgrid/ui.jqgridffe4.css" /> <style> html, body { margin: 0; padding: 0; font-size: 75%; } </style> [removed][removed] [removed][removed] [removed][removed] [removed] $(document).ready(function(){ $.jgrid.defaults.styleUI="Bootstrap"; var topicjson={ "response": [ { "id": "1", "elementName": "Grouping", "url":"/asd/asda", level:"0", parent:"", isLeaf:false, expanded:false, loaded:true }, { "id": "1_1", "elementName": "Simple Grouping", "url":"/asd/12", level:"1", parent:"1", isLeaf:true, expanded:false, loaded:true }, { "id": "1_2", "elementName": "May be some other grouping", "url":"/asd/14342", level:"1", parent:"1", isLeaf:true, expanded:false, loaded:true }, { "id": "2", "elementName": "CustomFormater", level:"0", parent:"", isLeaf:false, expanded:false, loaded:true }, { "id": "2_1", "elementName": "Image Formatter", level:"1", parent:"2", isLeaf:true, expanded:false, loaded:true }, { "id": "2_3", "elementName": "Anchor Formatter", level:"1", parent:"2", isLeaf:true, expanded:false, loaded:true } ] }, grid; grid = jQuery("#jsonmap"); grid.jqGrid({ datastr: topicjson, datatype: "jsonstring", height: "auto", loadui: "disable", colNames: ["id","Items","url"], colModel: [ {name: "id",width:200, hidden:true, key:true}, {name: "elementName", editable:true,width:250, resizable: false}, {name: "url",width:200, editable:true,hidden:false} ], treeGrid: true, treeGridModel: "adjacency", ExpandColumn: "elementName", treeIcons: {leaf:'ui-icon-document-b'}, caption: "jqGrid Demos", autowidth: true, rowNum: 10000, ExpandColClick: true, jsonReader: { repeatitems: false, root: "response" }, onSelectRow: function(id){ } }); }); [removed] </head> <body>
【文件预览】:
jqgridTreeDemo
----jquery-1.11.1.min.js(94KB)
----jqgrid()
--------i18n()
--------.svn()
--------ui.jqgridffe4.css(16KB)
--------jquery.jqGrid.minffe4.js(300KB)
----fonts()
--------fontawesome-webfont93e3.svg(348KB)
--------fontawesome-webfont93e3.eot(67KB)
--------glyphicons-halflings-regular.ttf(44KB)
--------.svn()
--------fontawesome-webfont93e3.woff(79KB)
--------glyphicons-halflings-regular.woff2(18KB)
--------glyphicons-halflings-regular.eot(20KB)
--------fontawesome-webfontd41d.eot(67KB)
--------glyphicons-halflings-regular.svg(106KB)
--------fontawesome-webfont93e3.woff2(63KB)
--------glyphicons-halflings-regular.woff(23KB)
--------glyphicons-halflings-regulard41d.eot(20KB)
--------fontawesome-webfont93e3.ttf(135KB)
----css()
--------skin()
--------layout.css(3KB)
--------.svn()
--------countersigned.css(947B)
--------list-style.css(2KB)
--------sccl.css(10KB)
--------home.css(5KB)
--------bootstrap.min14ed.css(136KB)
--------esignDemo.css(461B)
--------global.css(4KB)
--------login.css(3KB)
----demo.html(3KB)