trying a new email.
I thought some mod of the group decided not to let me post anymore, thanks for the clarification.
this is my tree
$('#tree').jstree({
'core': {
'plugin': ['themes', 'types'],
'types': {
"default": {
"icon": "glyphicon glyphicon-file",
"valid_children": ["default", "file"]
},
"file": {
"icon": "glyphicon glyphicon-file",
"valid_children": []
}
},
'check_callbacks': true,
'themes': { 'stripes': true },
'data': {
type: 'POST',
contentType: 'application/json; charset=utf-8',
url: 'V2_DocTreeView.aspx/GetChildrenFor',
data: function (node) {
var group = 0;
if (node.id == "#")
group = getParameterByName("group");
else
group = node.id;
return '{id: "' + group + '"}';
}
}
}
}
)
And here is some of my response (I have set all the nodes's type to file just to see if i could get any changes) :
{"d":
[
{"__type":"Doc","text":"Common","id":"6","childrenID":null,
"state":{"opened":false,"disabled":false,"selected":false},
"children":true,"a_attr":null,
"data":{"link":"V2_DocsView.aspx?key=54","eType":"0"},"type":"file"},
{"__type":"Doc","text":"All Plants","id":"773","childrenID":null,"state":{"opened":false,"disabled":false,"selected":false},"children":true,
"a_attr":null,
"data":{"link":"V2_DocsView.aspx?key=20003","eType":"0"},"type":"file"}
And when a node is opened
{"d":[{"__type":"Doc","text":"The Big Book of Logos","id":"3718","childrenID":null,"state":{"opened":false,"disabled":false,"selected":false},"children":false,"a_attr":null,"data":{"link":"V2_DocsView.aspx?key=520900","eType":"1"},"type":"file"}]}
I understand the concept of types (I think) but i also see the __type set to Doc and not sure what to do about that
Any ideas