-
I am trying to build a menu using a TreeView and trying to raise an event on only certain nodes within the tree. All of the nodes that are to raise this event are leaf nodes, but I also have some leaf nodes that will call the navigateurl and target "_blank" to open in a new window. The nodes...
-
I have extended TreeNode class as following: public class abstract BaseTreeNode : TreeNode Then I have extended my BaseTreeNode class to have 2 NodeTypes as following: public class ReportCategoryTreeNode : BaseTreeNode public class ReportTreeNode : BaseTreeNode Now I need to implement my CustomTreeView...
-
You could probably do this is Dynamic Data but the interface would be a bit clumbsy as you would need to navigate through many forms to get to the child you wahted to add a category to. I would use a TreeView to navigate to the entry I wanted to Edit/Add to and then call the form to Edit/Insert from...
-
How to add NavigateUrl Param in treeView with I using collection object with the following code: Category.cs: 1 public class Category : IHierarchyData 2 { 3 private int _categoryId; 4 private int _parentId; 5 private string _name; 6 private string _url; 7 8 public int CategoryId 9 { 10 get { return _categoryId;...
-
I have placed an empty TreeView control on a page, and I want to populate it. In a method I'm fetching all nodes and returning a TreeView object, but for some reason the control is emtpy... Something like this: tree = ReturnTree(); I've debugged the method to see that all the nodes are gathered...
-
Hello, I'm building the content of a TreeView on some code I found lying around. This is the code I'm using: using (SPSite site = new SPSite(sharepointurl)) { using (SPWeb website = site.OpenWeb(mainsite + accountGuid)) { TreeNode vsNode = new TreeNode(accountName); vsNode.NavigateUrl = website...
-
Here is my scenario. I am
going to have a page with the treeview displayed. A user can add and
delete nodes: when the user clicks on the node, a pop up will come up
with a form, where a user will enter data, this data then gets saved
into the database, and the pop-up script comes back with the id (from...
-
I've done a search on the net and this forum and found people having this problem but no solution. I have a treeview which shows folders and files from my OS but if there is an empty folder in the treeview it is displayed with the file icon rather than a folder icon. The work around I have done just...
-
I am using c# with asp.net web forms (i also have ajax toolkit, but haven't used it yet). I am new to AJAX, but not opposed to it Here is my scenario:
I need to implement a functionality that is going to use TreeView
control. A parent page will display a TreeView and a user will be able
to click...
-
I am loading a TreeView into a Panel on a webform from SQL that contains 430 Company names and their Contacts. I have a search feature that allows the user to search the TreeView and select the first node that matches their search criteria. The selected node is then expanded. How can I refocus so that...