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”.

Download: http://www.astreeview.com/astreeviewdemo/Download.aspx

  • 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?

  • http://jinweijie.myopenid.com/ jinweijie

    Hello Aidan,

    Please find support here http://www.astreeview.com/astreeviewdemo/Support.aspx

    Thank you.

    Weijie

  • zzdfc

    你好!
    非常棒的作品!
    能推荐或开发一个DatePicker的asp.net服务器端控件吗?

  • Mar

    Hey,
    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.

    Thanks,

  • 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

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

    Panel1.Controls.Add(asTreeView);

  • 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 ?

  • http://jinweijie.myopenid.com/ jinweijie

    Hi Rocky,

    We’ve talked on cnblogs. :)

    Weijie

  • http://jinweijie.myopenid.com/ jinweijie

    Hello ArcadeFire,

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

    For your question:

    1. yes.
    2. yes.

    thanks.

    Weijie

  • 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

  • http://www.obsidiandigital.net 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.

    Thanks,
    RLC

  • http://jinweijie.myopenid.com/ 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.

    Thanks.

    Weijie

  • 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.

  • http://jinweijie.myopenid.com/ jinweijie
  • qingqi

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

  • http://jinweijie.myopenid.com/ jinweijie

    应该没有这个bug的。

  • qingqi

    我刚才又试了一下这个http://www.astreeview.com/astreeviewdemo/ASTreeViewDemo5.aspx
    删除子节点后virtual-nodes-count没有改变 reload页面后会变
    另外这个virtual-nodes-count最初是手工赋值的 总觉得有点儿不对劲。。。

    childnodes我忘了上次在哪儿用到的了。。。想起来再说。。。

  • qingqi

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

    。。。如果你有一个报bug的地方可能更好一点

  • 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 但毕竟非常不好

    delete有类似的问题

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

  • TerryGu

    Hello jinweijie
    请教一下,
    1.astreeview在使用自定义图标时,如何实现在拖拽节点时,动态更新图标。例如拖拽后,原来的叶子节点变成非叶子节点了,需要更改它的图标。
    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.

  • http://jinweijie.myopenid.com/ jinweijie

    Hi Jon,

    I’ve replied you by email.

    Thanks.

  • Asha

    Hi
    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.
    Thanks
    Asha

  • 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?

  • http://jinweijie.myopenid.com/ 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?

    Thanks.

    Weijie

  • 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

  • http://jinweijie.myopenid.com/ jinweijie

    Hi Andrew,

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

    Thanks,

    Weijie

  • Mark

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

    Thanks,
    Mark

  • Mark

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

    I want to postback to a function called:
    OnOnSelectedNodeChanged=”ASTreeView1_OnSelectedNodeChanged”

    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.

    Thanks,
    Mark

  • Fred

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

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

    ajax加载的checkbox树父节点选中时,子节点没展开的选择不了,是否可以选中父节点的时候,子节点全部加在并选择好?

  • sugumaran

    Hi,
    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..
    Thanks…..

  • http://jinweijie.myopenid.com/ jinweijie

    Hi,

    I fixed this issue and please download the latest version.

    Thanks.

  • http://www.ihuaihuai.com ihuaihuai

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

    另外,是否可提供,如:我点选的是“ABC”节点,其父节点″AB”,以及顶级节点“A”,目前情况下是ABC,AB,A节点值全部获取,是否有办法实现我只需要的ABC节点值呢?

    感谢!期待您的回复。

  • http://www.galactusit.com 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.

  • http://jinweijie.myopenid.com/ jinweijie
  • http://jinweijie.myopenid.com/ jinweijie

    请下载最新版试下

  • Guest

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

  • robit

    hi
    新版功能越改越好 ,
    但目前有一個問題,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: