[CLOSED] Update a nodes iconcls and cls properties in direct method.

  1. #1

    [CLOSED] Update a nodes iconcls and cls properties in direct method.

    How do I update a tree nodes iconcls and cls properties in direct method.

    I was hoping to do something like:

    [DirectMethod]
    public void RefreshTreeItem(int nodeId)
    {
        TreeNode node = MyTreePanel.GetNodeById(nodeId);
        node.Cls = GetClassForNode(nodeId);
        node.IconCls = GetIconClassForNode(nodeId);
    }
    The issue I have is that there is no GetNodeById method for a treepanel.
    Last edited by geoffrey.mcgill; Jul 07, 2010 at 2:43 AM.
  2. #2

    RE: Update a nodes iconcls and cls properties in direct method.

    Hi,

    Please update from SVN and use the following TreePanel's methods:
    - SetNodeCls
    - SetNodeIconCls
    - SetNodeIcon

Similar Threads

  1. [CLOSED] Output Cache issue with Direct Method / Direct Event
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 18
    Last Post: Mar 01, 2013, 5:03 AM
  2. Replies: 4
    Last Post: Jun 28, 2012, 11:32 PM
  3. Direct method and direct event over SSL?
    By dimitar in forum 1.x Help
    Replies: 0
    Last Post: Oct 08, 2011, 8:09 PM
  4. Update ASP.net controls via Direct Method
    By glenh in forum 1.x Help
    Replies: 4
    Last Post: Sep 14, 2010, 5:38 PM
  5. [CLOSED] Update ASP Update Panel with Direct Event
    By sharif in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 24, 2010, 12:48 AM

Posting Permissions