ASTreeView 1.5.9 Release Notes

by Weijie JIN on

In ASTreeView, two small issues have been fixed:

1. Fixed error when the depth of treeview exceeds 20.

2. Fixed a typo error with “checkbox”.


  • Aidan

    Hi Jin,

    I really like using your TreeView, but when I tried Sample17 on my local machine, I get an alert that there was an AJAX error.

    However, Sample17 works fine on your site.

    My code using similar method to Sample17 throws the same error.

    Do I need to install anything extra to get AJAX to work?

  • jinweijie

    Hello Aidan,

    Please find support here

    Thank you.


  • zzdfc


  • Mar

    I am just wondering is this control is compatible with .Net 4.0 framework and Visual studio 2010. If yes, please let us know so that we may consider buying support or entire source code. Please get back to me as soon as possible.


  • Marty Lau

    I would like to use ASTreeview but I found the NodeDepth property is not working. It always return -1. How can I find the depth value like ASP Tree View

  • LetsLOL

    Tried all these commented and uncommented combinations ends up get
    Microsoft JScript runtime error: ‘_rdc’ is undefined

    ASTreeView asTreeView=new ASTreeView();
    asTreeView.AutoPostBack = true;
    ASTreeViewNode rootNode;
    rootNode = asTreeView.RootNode;
    rootNode=new ASTreeViewNode(“Project”,”Project”);
    //rootNode=new ASTreeViewNode(“Projects”, “Projects”);
    rootNode.AppendChild(new ASTreeViewNode(“TestCase”, “TestCase”));
    rootNode.AppendChild(new ASTreeViewNode(“TestCase”, “TestCase”));


  • ArcadeFire

    Hi Wei
    I like this control prtety much and would like to use this control (binary only) in one of my application and in future I would like to others to use my application to create websites. so here is the question
    1. Can I publish my application as open source project though your control is free only for personal and non-commercial ?
    2. If I publish application as close-source application for commercial purpose , can I buy only one license for my app and then distribute my application with your control freely ?

  • jinweijie

    Hi Rocky,

    We’ve talked on cnblogs. :)


  • jinweijie

    Hello ArcadeFire,

    Sorry for the late reply, I just saw your comments.

    For your question:

    1. yes.
    2. yes.



  • kolia

    how can i add/delete node in javascript wiyh my own buttons on the form

  • kolia

    one more thing when I add new node and have EnableFixedParentDragDrop=”true”
    the new node not draggable absolutely

  • RLC

    Hi Jin,

    We are very interested in utilizing your TreeView Control but, wonder if you might post a white paper on how to specifically deploy same in the Net 4.0 framework and Visual Studio 2010.

    So as not to infringe on your time, the white paper should be no more than a step1, step2, step3…to ultimately deploy the TVControl in an application.


  • jinweijie

    Hello RLC,

    Did you mean you need to use the ASTreeView in VS2010, .Net Framework 4.0?

    In fact, it’s the same as VS2008, just a few steps:

    1. add ASTreeView.dll as reference in your project.
    2. copy the script files to /javascript folder (this is the default value of the files path, if you put the script files else where, you need to set the property “BasePath” in the control)
    3. you may also add ASTreeView.dll to your toolbox then you can draganddrop ASTreeView onto your page. but this optional.
    4. use ASTreeView like other controls.

    Hope this answers your question.



  • Will

    Hi, I read ASTreeView documentation and that’s a good work, but I’m interested too in a GridView. Will you make a ASP.NET GridView component? Thanks.

  • jinweijie
  • qingqi

    这个control功能确实很强大 很实用
    但我用着好像有个bug 就是删除node后发现parentnode的childnodes数或者VirtualNodesCount没有变化呀?

  • jinweijie


  • qingqi

    删除子节点后virtual-nodes-count没有改变 reload页面后会变
    另外这个virtual-nodes-count最初是手工赋值的 总觉得有点儿不对劲。。。


  • qingqi

    真是不好意思又打搅 我现在用你的这个用的很频繁 想实现一些功能
    里面不打开folder的情况下如果我选Add 一个node
    会出现Loading # nodes… 这个能解决么?谢谢!


  • qingqi


    我还有一点建议 就是node被delete以后有可能需要更新parent node的一些值
    如果能在deletedHandler(val)加一个deletedHandler(val, parentNodeId)会比较方便



  • qingqi

    在demo5里面 我试着加上了 node add handler just like what your sample showed:
    protected void btnAddPostBackTrigger_Click(object sender, EventArgs e)
    var addedNodeId = txtAddedIDContainer.Text;
    var node = tvCatalog.FindByValue(addedNodeId);
    这个node是找不到的 博主可以自己试一下结果是node=null
    这样新加进去的node无法显示 虽然中间会昙花一现
    此问题我只好自己写个假node 但毕竟非常不好


    以前提到的问题更这个比较起来都算小问题 希望您能重视一下

  • TerryGu

    Hello jinweijie
    2.还有一个麻烦的问题,如果需要实现根据不同的查询条件来查询绑定树的数据源,例如,页面放置几个checkbox,根据勾选设置查询条件。但这种情况在加载第一层节点的时候没问题,再点击节点展开其他子节点时,Render事件会重新load,将之前的查询条件全部清空了。就会出现数据不准的情况。另外,怎么找不到有clear node的方法?

  • Jon Ivar Hermannsson

    Hello jinweijie,
    I’m working on a project, where we would like to use the ASTreeView for commercial use. We were trying to buy the source code version on AlertPay, but we’ve had some difficulties with completing the transaction (neither Visa or Mastercard have worked in our case). Please contact me about this matter through e-mail – we like the solution and look forward to using it.

  • jinweijie

    Hi Jon,

    I’ve replied you by email.


  • Asha

    I want to check whether I can update position also along with drag and drop..If possible please send some samples..its a requirement from my client.

  • c witty

    when i use TraverseTreeNode to get the NodeDepth, they all come up as -1. is there any way to get the NodeDepth for each node?

  • jinweijie

    Hello Witty,

    If you would like to have support, could you please consider to buy the priority support for ASTreeView? If you’ve already bought the support, could you please provide the purchase email?



  • AndrewM

    We would like to buy the source code if it can support 4 or more trees per page with drag and drop support between each as is. Also does the source code include priority support, if not how much extra is it? Thanks -Andrew

  • jinweijie

    Hi Andrew,

    I also got an email from you, I replied that email.



  • Mark

    I’m getting _rdc is undefined when loading the page?


  • Mark

    I’m having an issue setting the MaxLength to 2…when using:
    Nodes are set to: ASTreeViewNode(…)

    I want to postback to a function called:

    When the MaxLength is set to 2 and I click on one of the Nodes I get an error:
    The maximum depth of 2 has been exceeded.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: The maximum depth of 2 has been exceeded.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [FormatException: The maximum depth of 2 has been exceeded.]
    Geekees.Common.Utilities.Json.JsonParser.AssertDepth(Int32 depth) +150
    Geekees.Common.Utilities.Json.JsonParser.ParseObject() +145
    Geekees.Common.Utilities.Json.JsonParser.ParseNext(TokenType type) +227
    Geekees.Common.Utilities.Json.JsonParser.ParseArray() +351
    Geekees.Common.Utilities.Json.JsonParser.ParseNext(TokenType type) +157
    Geekees.Common.Utilities.Json.JsonParser.ParseArray() +351
    Geekees.Common.Controls.ASTreeViewHelper.ParseJsonTree(ASTreeViewNode root, String treeJsonString) +175
    Geekees.Common.Controls.ASTreeView.LoadTreeNodes() +88
    Geekees.Common.Controls.ASTreeView.LoadViewState(Object savedState) +299
    System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +183
    System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
    System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
    System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
    System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
    System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
    System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
    System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +134
    System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +221
    System.Web.UI.Page.LoadAllState() +312
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1661

    I have verified that the Nodes do not exceed 2 before I click on one.


  • Fred

    I’m getting _rdc is undefined when loading the page?

  • http://ajax加载的checkbox树父节点选中时,子节点没展开的选择不了 js9528


  • sugumaran

    I am very much like to use this control. but i have face one small issue. the issue is if i am use this control in ie9 the context menu is not displayed(default right click menus are overlapping the context menu)
    Similarly if i am use this control in ie10 “missing script file[_rdc.ASTreeView]!” issue occurred..
    These two issues i have faced now. so can you tell the solution ASAP?
    i am waiting for your reply..

  • jinweijie


    I fixed this issue and please download the latest version.


  • ihuaihuai

    我发现在ie10或者windows x64位系统上会发生”missing script file[_rdc.ASTreeView]!”的提示,点确定后树加载成功,但无法进行选择,点选无效果。



  • John

    I’m trying to get this running for one of my customers who will pay for it once it works, however I’m still getting the _rdc not defined message. You posted on June 17th that this was fixed however from the public downloads I don’t see anything with any recent dates.

  • jinweijie
  • jinweijie


  • Guest

    hi 新版功能越改越好
    目前有一個問題,VS的壓力測試 CPU 使用量 100%

  • robit

    新版功能越改越好 ,
    但目前有一個問題,VS的壓力測試 CPU 使用量 100%

  • Ciaran Gallagher

    Which script files? In the download folder there are 3 sub-folders of the Javascript folder. Should I maintain the folder structure in my VS project? Thanks

Previous post:

Next post: