Folder list - tree view

I'm trying to build a tree view of an account's folders but I keep
running into a problem no matter which approach I take. In the code
snippet below I'm using the PopulateTree method recursively to add
nodes to the tree view. This works using the .NET GW API but when I
use SOAP it seems that I get my root folder, my Mailbox (which is
immediately below my root folder) but when the function recurses
against what should be a different list of (sub-) folders I end up
with the root and Mailbox folders in the next call to PopulateTree.
I've also tried doing the first level inline with the initializing
code, calling PopulateTree against each of the folders in the first
level as the parent folders but I still seem to only get the root
folder and Mailbox again within the foreach loop of the PopulateTree
method. Otherwise, I can list all the folders in a text string if I
ask for a recursive listing.
treeFolders.Nodes.Clear();
PopulateTree(treeFolders.Nodes[0], "Folders");
private int PopulateTree(TreeNode parentNode,
string parentFolderID)
WR.getFolderListRequest flreq =
new WR.getFolderListRequest();
flreq.recurse = false;
flreq.parent = parentFolderID;
WR.getFolderListResponse flres =
ws.getFolderListRequest(flreq);
if (flres.status.code != 0) return flres.status.code;
TreeNode localNode;
int folderCount = flres.folders.Length;
foreach (WR.Folder folder in flres.folders)
localNode = parentNode.Nodes.Add(folder.name);
PopulateTree(localNode, folder.id);
localNode = null;
return 0;

Right call it once recursive, and then cache in Map or similar structure.
On 12/20/2012 5:58 AM, Preston Stephenson wrote:
> There are issues with certain folders. You really should only call
> getFolderListRequest the one time doing recurse true. You should
> cache the results. You can build u a tree view with the results.
> At least that is what I do.
>
> Preston
>
>>>> On Wednesday, December 19, 2012 at 8:48 AM, Lilith<[email protected]>
> wrote:
>> I'm trying to build a tree view of an account's folders but I keep
>> running into a problem no matter which approach I take. In the code
>> snippet below I'm using the PopulateTree method recursively to add
>> nodes to the tree view. This works using the .NET GW API but when I
>> use SOAP it seems that I get my root folder, my Mailbox (which is
>> immediately below my root folder) but when the function recurses
>> against what should be a different list of (sub‑) folders I end up
>> with the root and Mailbox folders in the next call to PopulateTree.
>>
>> I've also tried doing the first level inline with the initializing
>> code, calling PopulateTree against each of the folders in the first
>> level as the parent folders but I still seem to only get the root
>> folder and Mailbox again within the foreach loop of the PopulateTree
>> method. Otherwise, I can list all the folders in a text string if I
>> ask for a recursive listing.
>>
>> treeFolders.Nodes.Clear();
>> PopulateTree(treeFolders.Nodes[0], "Folders");
>>
>> private int PopulateTree(TreeNode parentNode,
>> string parentFolderID)
>> {
>> WR.getFolderListRequest flreq =
>> new WR.getFolderListRequest();
>> flreq.recurse = false;
>> flreq.parent = parentFolderID;
>>
>> WR.getFolderListResponse flres =
>> ws.getFolderListRequest(flreq);
>>
>> if (flres.status.code != 0) return flres.status.code;
>>
>> TreeNode localNode;
>> int folderCount = flres.folders.Length;
>> foreach (WR.Folder folder in flres.folders)
>> {
>> localNode = parentNode.Nodes.Add(folder.name);
>> PopulateTree(localNode, folder.id);
>> }
>> localNode = null;
>>
>> return 0;
>> }

Similar Messages

  • Category List/Tree View Sort Order

    What determines the sort order for the folders in the Category/Tree view Lists?
    I have two machines both at SP1 FP3, one displays Favorites and then Add-Ons, the other displays Favorites and then Charts, with Add-Ons coming at the bottom of the list.
    Any ideas, another registry fix?
    Thanks
    Charles

    Hi pianoboyCoder,
    You could loop the treeNodes in the treeView. then move the Node whose text begin with "Red" to bottom.
    I wrote a test program for you. you could refer to .
    int upper = this.treeView1.Nodes.Count;
    TreeNode Temp;
    for (int Outer = upper-1; Outer >= 1; Outer--)
    for (int Inner = 0; Inner <= Outer-1; Inner++)
    if (treeView1.Nodes[Inner].Text.StartsWith("Red"))
    Temp = treeView1.Nodes[Inner];
    treeView1.Nodes[Inner] = treeView1.Nodes[Inner + 1];
    treeView1.Nodes[Inner + 1] = Temp;
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • EMail App Folder List No Longer Appreaing

    Hi.
    The Email App on my tablet no longer shows the folder list on any of the three email accounts I use.  The envelope icon no longer works as it did before (take you to folder list) when viewing emails.  I have 2 Exchange accounts and one IMAP account.  All three show the same behavior.
    I cannot find another menu item, button or icon that gets me to the folder list (HINT: This should be a feature somewhere maybe?!).
    I can see the folder list if I go into Folder Sync Settings. I can also create folders and move items to another folder.  But, I cannot navigate to a folder at all to view the emails in it.
    I think this started when Verizon pushed its last update.
    Hardware: Samsung Galaxy Tab 2 10.1 (Model SCH-I915)
    Software version: 4.1.2
    Update Source: Verizon Wireless
    Update Name: update_SCH-I915_LJ1_to_MA3
    Update Time: 6:55 AM 3/15/2015
    Build Number: JZO54K.I915VRBMA3
    Anyone have any ideas?

        Good morning BenSardinas.
    I'm sorry you're unable to use/ find the e-mail application as you previously did. I would be frustrated if something like my e-mail application disappeared, as that's a huge part of my everyday life. Let's see what we can do to get the application/ icon back onto your Tablet. (Thank you so much for all the detailed information you provided. Very helpful.)
    You mentioned that you no longer see the folder on your Tablet, when did this change? Did you recently update the software on the device? Do you get a notification when e-mails come in? If so, when you open, do you see other e-mail accounts? Please try removing the e-mail accounts, power off the device for 30 seconds, and then re-add accounts. Let's see if this helps. Please keep us posted.
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • Links - How to reorder links within a folder. Also, how to make folders open in a tree view?

    I'm working on a portal in Sharepoint 2007. It appears that I can only have one set of "Links" on a page, so I am grouping my related links into folders. I'm having two issues with this...
    #1. I need to change the order of the links within a folder. When I try to Change Order under the Actions menu, I only get the main list of links, not those within the folder. How can I reorder links within a folder?
    #2. When I click a Links folder, all links go away, except for the links within that folder. Is there any way to make the Links list work in a Tree view?
    Sorry for the newbie questions, but I've not worked much in Sharepoint and I had this project dropped on me.  :(

    Hi,
    For Question #1,
    refer this link.
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • How to populate list in tree view  dynamically

    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
    InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

    The TreeViewAdaptor is responsible for mapping your custom data to the tree view itself.  I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
    Then, after you get it laid out and displaying properly, you can worry about using real data.  At that point, you have your adaptor return the actual number of items in your list and each individual item.  Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw.  At that point your adaptor will get called and your data should appear.
    Jon
    "Expert for hire"

  • Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data

    Expected output in Xml:
    <?xml version="1.0" encoding="utf-8" ?>
    - <TopRoot>
    - <Root id="1" Name="Department">
    - <Type id="2" Name="IT">
    - <SubType id="3" Name="Technology">
      <SubSubType id="4" Name="Sharepoint" />
      <SubSubType id="5" Name="ASP.NET" />
      <SubSubType id="6" Name="HTML 5" />
      </SubType>
      </Type>
    </Root>
    </TopRoot>
    List Details:
    list details for storing category / sub category data and code to build tree structure for the same.
    1.Create Custom List named “CategoryDetails”:
    2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
    3.Create column “Parent Category” of type lookup. under Additional Column Settings.
    Get information dropdown, select “CategoryDetails”.
    4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
    In this column dropdown, select “Category Name”:  
    Referance:
    http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data    -fine but don't want tree view just generate xml string
    i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
    Expected Result:
    My ultimate goal is to generate xml string like above format without building tree view.
    I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
    I developed some code but its not working to generate xml /string.
    My modified Code:
    public const string DYNAMIC_CAML_QUERY =
            "<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
            public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
            "<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
            protected void Page_Load(object sender, EventArgs e)
                if (!Page.IsPostBack)
                 string TreeViewStr= BuildTree();
                 Literal1.Text = TreeViewStr;
            StringBuilder sbRoot= new StringBuilder();
            protected string BuildTree()
                SPList TasksList;
                SPQuery objSPQuery;
                StringBuilder Query = new StringBuilder();
                SPListItemCollection objItems;
                string DisplayColumn = string.Empty;
                string Title = string.Empty;
                string[] valueArray = null;
                try
                    using (SPSite site = new SPSite(SPContext.Current.Web.Url))
                        using (SPWeb web = site.OpenWeb())
                            TasksList = SPContext.Current.Web.Lists["Service"];
                            if (TasksList != null)
                                objSPQuery = new SPQuery();
                                Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
                                objSPQuery.Query = Query.ToString();
                                objItems = TasksList.GetItems(objSPQuery);
                                if (objItems != null && objItems.Count > 0)
                                    foreach (SPListItem objItem in objItems)
                                        DisplayColumn = Convert.ToString(objItem["Title"]);
                                        Title = Convert.ToString(objItem["Title"]);
                                        int rootId=objItem["ID"].ToString();
                                        sbRoot.Append("<Root id="+rootId+"
    Name="+Title+">");
                                        string SRAndSUBSRTpe = CreateTree(Title, valueArray,
    null, DisplayColumn, objItem["ID"].ToString());
                                        sbRoot.Append(SRAndSUBSRTpe);
                                        SRType.Clear();//make SRType Empty
                                        strhtml.Clear();
                                    SRType.Append("</Root>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
             StringBuilder strhtml = new StringBuilder();
            private string CreateTree(string RootNode, string[] valueArray,
          List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
                try
                    strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
                catch (Exception ex)
                    throw ex;
                return strhtml;
            StringBuilder SRType = new StringBuilder();
            private string GetSRType(string RootNode,
            string[] valueArray, List<SPListItem> objListItemColn)
                SPQuery objSPQuery;
                SPListItemCollection objItems = null;
                List<SPListItem> objNodeListItems = new List<SPListItem>();
                objSPQuery = new SPQuery();
                string objNodeTitle = string.Empty;
                string objLookupColumn = string.Empty;
                StringBuilder Query = new StringBuilder();
                SPList objTaskList;
                SPField spField;
                string objKeyColumn;
                string SrTypeCategory;
                try
                    objTaskList = SPContext.Current.Web.Lists["Service"];
                    objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
                    Query.Append(String.Format
                    (DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
                    objSPQuery.Query = Query.ToString();
                    objItems = objTaskList.GetItems(objSPQuery);
                    foreach (SPListItem objItem in objItems)
                        objNodeListItems.Add(objItem);
                    if (objNodeListItems != null && objNodeListItems.Count > 0)
                        foreach (SPListItem objItem in objNodeListItems)
                            RootNode = Convert.ToString(objItem["Title"]);
                            objKeyColumn = Convert.ToString(objItem["ID"]);
                            objNodeTitle = Convert.ToString(objItem["Title"]);
                            SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
                           if(SrTypeCategory =="SRtYpe")
                              SRType.Append("<Type  id="+objKeyColumn+" Name="+RootNode+ ">");
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SRSubTYpe")
                              SRType.Append("<SRSubType  id="+objKeyColumn+" Name="+RootNode+
    ">");  
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SubSubTYpe")
                              SRType.Append("<SubSubType  id="+objKeyColumn+" Name="+RootNode +"
    ></SubSubType");  
                        SRType.Append("</SubType>");
                        SRType.Append("</Type>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
                // Call method again (recursion) to get the child items

    Hi,
    According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
    In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
    For example, to create or delete the ECB menu for a list item in
    "Site Content and Structure", we can follow the steps below:
    To add the “My Like” menu, we can add the code below:      
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemLike"
    runat="server"
    Text="My Like"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickNavigateUrl="https://www.google.com.hk/"
    />
    To remove the “Delete” menu, we can comment the code below:
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemDelete"
    runat="server"
    Text="<%$Resources:cms,SmtDelete%>"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickScript="%SmtObjectDeleteScript%"
    />            
    The result is as below:
    More information:
    MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
    MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to hide a list from SharePoint tree view pro grammatically.

    Hi,
    I have enabled tree view for a SharePoint 2013 site pro grammatically. 
    I want hide some specific lists from that tree view like Documents, Workflow, Task List, Calender
    Lists which are created default when we create a site.
    How could i do that?

    I know how to hide Quick launch and Enable Tree view with properties in C#.
    My question is 
    hide some specific lists from that tree view like Documents,
    Workflow, Task List, Calender
    Lists which are created default when we create a site.

  • How to add text dynamically in  Tree view list box

    CS3/WIN<br />hi,<br />I am new in plugin development.<br />I have a Tree View List box on a dialog.<br />b I don't want to display text when i load the plugin.<br />b I want to insert text data when i click on "Insert" button on dialog. <br />I have defined  Adapter,Mgr,Observer for list box.it is working fine when i want to display data at loading time itself.but not when i click on insert button.<br />b In dialog observer i have defined this but it is not working<br /><br />b Dialog Observer::Update<br /><br />InterfacePtr<IPanelControlData> panelControlData(this, UseDefaultIID());<br />IControlView* Grid = panelControlData->FindWidget(kESSGridTVWidgetID);<br />InterfacePtr<IStringListControlData> listControlData(Grid,UseDefaultIID());<br />if (theSelectedWidget == kESSInsertButtonWidgetID && theChange == kTrueStateMessage) <br />{<br />listControlData->AddString(strText,kESSListBoxTextWidgetID); <br />}<br /><br />b it is showing error  <br />b operator new returning nil for an allocation size of 486022320 bytes<br />(..\..\..\source\components\memoryallocator\PMNew.cpp (552))<br />b Memory allocation failure<br />(c:\development\cobalt\source\public\includes\K2Allocator.h (131))<br />can any one help to get this..<br />Thanks.

    How to populate list in tree view  dynamically
    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){
    PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_bac k(name);}
    InterfacePtr<IStringListData> iListData(
    this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

  • To rename a page or folder In either the Folder List panel or the Folders view of the site, right-click the file or folder, and then click Rename. Type the new name.

    I set out to change the page name ready to publish on my hosts server after Having used a temp. name, simple so the " Expression web user guide says" I have not been able to find the "Folder List panel" of The folders view of the site,
    I have just completed an hour methodically searching for the two files listed, I would be most grateful for some simple instructions on how to find the entities listed in the Title above, which I cut and pasted to make sure that I got it right.
    Regards, 
    Robert
    Robert 1000

    If you are in the standard configuration, click "Site|Open Site," then browse to and open your site. With an open site, you will see a tab at the top labeled "Site View." Another tab at the bottom will be labeled "Folders,"
    because you are then in Folders view of the site (recognize that terminology?). At the same time, unless you have your panels hidden, in the upper left side you will see a panel labeled "Folders List." If you do not see this panel, click "Panels|Reset
    Current Workspace."
    cheers,
    scott
    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

  • Symbol \ cannot be displayed in tree view after publiched in BOE via infoview

    Post Author: fjiang05
    CA Forum: General
    Hi guys,
    I created a crystal report for the system user. The report was grouped  by the system user's login name such as boe\name. The forware slash symbol was correctly shown in the crystal report tree view. But after publish the crystal report into BOE and view the report from infoview, the forward slash symbol was disappeared.
    Does there anyone know anything about it? Does BOE do not support any symbol in tree view while via infoview.
    By the way, I am using Crystal Report XI R2.
    Cheers!

    Hello Adam,
    See if you can get into the Tomcat Admin page. Tomcat holds all the "webapps" (such as the CMC, Infoview, ...) that connect to the services listed in the CCM. Even though all services are running, one or more of these webapps could be down due to any sort of error.
    To be able to access the Tomcat Admin page, follow the procedure described in SAP Note 1218269 - How do you access the Tomcat administration tool.
    After logging in, you'll see all webapps that have been deployed to your Tomcat. You can enable any apps should they have become disabled, but make sure that you don't click Undeploy ! If you find that you can't enable the needed webapp(s), then there may be an error occurring that is preventing the webapp from loading. Have a look at the Tomcat log folder and check the stdout.log file to see if it contains any errors.
    Hope this helps.
    Kind regards,
    Kristof

  • Java swing tree view interact with indesign javascript

    i have java swing tree view(program).if i execute my program it will all indesign script folder files in tree view. what is my problem is if i click the script
    i want to execute. is it possible to execute indesign javascrpt from java swing UI. could anyone tell me pls.

    Sorry if I did not make this clear:
    This is not an InDesign issue but a Java issue. Search, or ask in a Java forum for best practice to deal with the mentioned platform specific mechanisms:
    - inter process communication (AppleEvent or TLB/OLE )
    - command line / shell script invokation
    - a way to launch an JSX script - the equivalent mechanism to File.execute() in Extendscript.
    For example, if I ask Google for "Java TLB", the second hit takes me to:
    http://dev.eclipse.org/newslists/news.eclipse.tools/msg09883.html
    Eventually you can reuse the DLL and jar - I haven't read that far.
    Google for Java AppleEvent:
    http://developer.apple.com/samplecode/AppleEvent_Send_and_Receive/listing2.html
    Note the 1999 copyright, this is pre-OSX. Also located in a "legacy documents" area. Apple has the bad habit to deprecate/abandon most of their technology every other year, so I would not be surprised if it does not work any more and you'd have to write you own JNI, JDirect or JNIDirect glue ( I don't even know the current buzzword). Ah, further digging unveiled that they even dropped the successor which was named "CocoaJava".
    If Mac specific, maybe post your questions to this list: http://lists.apple.com/mailman/listinfo/java-dev
    Dirk

  • EMail: FIltering folder list

    Hi!I just got my new, shiny N900 and updated it to firmware release Maemo 5 3.2010.02-8.
    I read the manual, but I could not find any way to configure the mail application to become usable.
    I added my IMAP4 mail account which contains about 260 mail folders, lots of them with archived mails only. The mail application simply displays ALL folders in a single, flat list. There does not seem to be a way to collapse subfolder trees, and I also could not find a way to filter the view to subscribed IMAP folders or, alternatively, to display folders with unread messages only.
    Where and how can I configure this, having to scroll to the full folder list makes the whole mail app barely usable...
    Thanks for any hints,
    Gunter

        Good morning BenSardinas.
    I'm sorry you're unable to use/ find the e-mail application as you previously did. I would be frustrated if something like my e-mail application disappeared, as that's a huge part of my everyday life. Let's see what we can do to get the application/ icon back onto your Tablet. (Thank you so much for all the detailed information you provided. Very helpful.)
    You mentioned that you no longer see the folder on your Tablet, when did this change? Did you recently update the software on the device? Do you get a notification when e-mails come in? If so, when you open, do you see other e-mail accounts? Please try removing the e-mail accounts, power off the device for 30 seconds, and then re-add accounts. Let's see if this helps. Please keep us posted.
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

  • How to displaying "my favorite Links" as a tree view menu

    Gurus,
    I have a KM iView in portal home page, where users keep adding their favourite links from time to time.  Now I want to display all the links as in tree structure say -
    Content Admin
             |--> Page A
             |--> Page B
    System Admin
             | --> Page C
    Kindly help me out in finding a solution.
    regds,
    Sukanta Rudra

    Krishna,
    Thanks for the reply. I was able to create the tree view.  Now I have two requirements related to this.
    1. How to have them as collapsible menu structure, which gets expanded as and when user wants.
    2. Can we customize it as, Whenever a user add as page in favorites, it will ask for to to put in some folder that is there under my favorites links? I belive it requires some programming customization. Could you guide me, for some solution.
    regds,
    Sukanta Rudra

  • 10g: Classes are missing in a package tree view

    I created a project from the existing source (3,000+ source classes). Initially all classes are shown in a tree view, but after restarting Jdeveloper I can see only part of the classes in a navigation window. At the same time I'm able to see all of them if I use package list view.
    Any ideas or similar experience?
    Noel.

    The latest internal build is 1493. Is it possible to reproduce the bug without getting your entire project? If so can you enumerate the steps? Thanks.

Maybe you are looking for

  • Some folder contents not showing in Bridge CS3

    Some folders will not display in any way in Bridge. It does not seem to matter whether they are Jpeg or RAW files. Other folders on the same internal drive show fine. Tried several options with no luck.

  • While simulating at the time of MIRO

    Dear Friends Please explain how to resolve the following case. In Migo there are 5 line items with freight charges. While doing MIRO with reference to PO- with Goods/ Service Items+Planned Delivery Cost , and entering Invoice Date, Amount, Business A

  • Printing a contact sheet

    Is there any way to print a large group of photos as a contact sheet, or set of contact sheets? I know you can use Adobe Photoshop and do an automated batch command to create a contact sheet and then print it. Any advise would be greatly appreciated.

  • Lumia 730 dual sim glance screen

    When will the glance screen going to be available for Nokia Lumia 730 dual sum ?

  • Beginner Question. need opinion on using JMF

    i am hoping to use JMF to have a audio/video chat session . it will be like there will be 5 PC's . and 1 PC will be streaming a video, the other 4 PC's will be showing it. what i want to do is to draw lines or make some mark on the video thats been t