Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jQuery("#treegrid2").jqGrid({
treeGrid: true,
treeGridModel : 'adjacency',
ExpandColumn : 'itid',
datatype: "json",
url: '/3/iteration/62/taskboard/json/',
mtype: "POST",
colNames: ["id","Rank", "ID", "Name", "State", "Size/Hours", "To do", "Owner", "Failures" ],
colModel:[
{name:'id',index:'id', width:1,hidden:true,key:true},
{name:'rank',index:'rank'},
{name:'itid',index:'itid'},
{name:'name',index:'name'},
{name:'state',index:'state'},
{name:'size',index:'size'},
{name:'remaining',index:'remaining'},
{name:'owner',index:'owner'},
{name:'failures',index:'failures'}
],
height:'auto',
autowidth: true,
pager : jQuery("#ptreegrid2"),
imgpath: '/jquery-ui/css/ui-lightness/images'
});
{"rows": [{"cell": ["xus-1433", 1, "US1433", "US1433", "Failed", "S", 0.0, "", 0, 0, null, false, true], "id": "xus-1433"}, {"cell": ["xta-2024", "", "TA2024", "TA2024", "Completed", 4.0, 0.0, "none", "", 1, "xus-1433", true, true], "id": "xta-2024"}, {"cell": ["xus-1431", 10, "US1431", "US1431", "In Progress", "M", 0.0, "", 0, 0, null, false, true], "id": "xus-1431"}, {"cell": ["xta-2025", "", "TA2025", "TA2025", "Completed", 4.0, 0.0, "none", "", 1, "xus-1431", true, true], "id": "xta-2025"}, {"cell": ["xta-2040", "", "TA2040", "TA2040", "In Progress", 2.0, 0.0, "none", "", 1, "xus-1431", true, true], "id": "xta-2040"}, {"cell": ["xus-1428", 18, "US1428", "US1428", "In Progress", "L", 6.0, "", 0, 0, null, false, true], "id": "xus-1428"}, {"cell": ["xta-2021", "", "TA2021", "TA2021", "Completed", 2.0, 0.0, "none", "", 1, "xus-1428", true, true], "id": "xta-2021"}, {"cell": ["xta-2022", "", "TA2022", "TA2022", "Defined", 4.0, 4.0, "none", "", 1, "xus-1428", true, true], "id": "xta-2022"}, {"cell": ["xta-2023", "", "TA2023", "TA2023", "In Progress", 2.0, 2.0, "none", "", 1, "xus-1428", true, true], "id": "xta-2023"}, {"cell": ["xta-2041", "", "TA2041", "TA2041", "Completed", 8.0, 0.0, "none", "", 1, "xus-1428", true, true], "id": "xta-2041"}, {"cell": ["xta-2053", "", "TA2053", "TA2053", "In Progress", 8.0, 0.0, "none", "", 1, "xus-1428", true, true], "id": "xta-2053"}, {"cell": ["xus-1429", 33, "US1429", "US1429", "Completed", "XS", 0.0, "", 0, 0, null, false, true], "id": "xus-1429"}, {"cell": ["xta-2043", "", "TA2043", "TA2043", "Completed", 1.0, 0.0, "none", "", 1, "xus-1429", true, true], "id": "xta-2043"}, {"cell": ["xus-1432", 44, "US1432", "US1432", "Completed", null, 0.0, "", 0, 0, null, false, true], "id": "xus-1432"}, {"cell": ["xta-2042", "", "TA2042", "TA2042", "Completed", 8.0, 0.0, "none", "", 1, "xus-1432", true, true], "id": "xta-2042"}, {"cell": ["xus-1449", null, "US1449", "US1449", "Defined", null, 0.0, "", 0, 0, null, true, true], "id": "xus-1449"}], "total": 1, "page": 1, "records": 16}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment