Hi,
I am developing a webmail client with angularjs and kendoui, it has two panes left for viewing user folders and right for message display / composition. For displaying the folders I am using kendoui treeview and when they select a node we display the proper messages for that folder.
Problem: When a user choose a folder, Drafts, then clicks on a message to finish composing that message they are unable to click on the Drafts folder node to navigate back to the Drafts folder gridview.
Code:
The issue I'm seeing is that once a node is selected, whenever you re-click on it, the select code does not fire.
Any thoughts on how to work around this?
I am developing a webmail client with angularjs and kendoui, it has two panes left for viewing user folders and right for message display / composition. For displaying the folders I am using kendoui treeview and when they select a node we display the proper messages for that folder.
Problem: When a user choose a folder, Drafts, then clicks on a message to finish composing that message they are unable to click on the Drafts folder node to navigate back to the Drafts folder gridview.
Code:
var theTree = $("#treeview").kendoTreeView({
dataSource: folderArray,
template: $("#foldersTemplate").html(),
expand: function(e) {
code for grabbing any sub-folders.
},
select : function(e) {
var treeviewInner = e.sender,
idFolder = treeviewInner.dataItem(e.node).id;
/* set-up angularjs controller scope */
window.location.href = "#/folder/" + idFolder; //navigates to the proper folder gridview when node seleced.
}
});
Any thoughts on how to work around this?