Checkbox misbehaving when load on demand is used

4 posts, 0 answers
  1. Niranjan
    Niranjan avatar
    11 posts
    Member since:
    Sep 2017

    Posted 19 Mar Link to this post

    Hello,

     

    I have a treeview that implements load on demand which is working fine for me. I use the treeview.append() method to append children of the given node.

    But strangely, in some scenarios the checkbox behaviour is not proper. I have set checkChildren: true in my code.

     

    A scenario to reproduce this is,

     

    check a node in the root level of the tree.

    Expand two levels down in the tree.

    Uncheck the root level node.

    Expand some other node at level two belonging to the root level node unchecked in previous step,

    the nodes still seem to be checked even though their parent node is unchecked.

     

    Any help in this regard would be higly appreciated.

     

    Thanks,

    Niranjan

  2. Dimitar
    Admin
    Dimitar avatar
    450 posts

    Posted 20 Mar Link to this post

    Hello Niranjan,

    I have tried several different approaches to reproduce the described behavior with the following Dojo example to no avail. I assume that I am missing some important implementation details, therefore may I ask you to modify the above Dojo example, so that the issue is replicated?

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Niranjan
    Niranjan avatar
    11 posts
    Member since:
    Sep 2017

    Posted 23 Mar in reply to Dimitar Link to this post

    Hello,

    I am unable to reproduce the same scenario here, but, i feel if you bind the data using a remote service, where each level of the hierarchy has a separate controller method to fetch the data is what is creating the issue.

  4. Dimitar
    Admin
    Dimitar avatar
    450 posts

    Posted 26 Mar Link to this post

    Hello Niranjan,

    I am not quite sure that I can understand the described scenario correctly. Therefore, may I ask you to elaborate a bit more on the binding scenario? Also, it would be most helpful if you could isolate the issue in a runnable solution and then send it back to us for additional review.

    In case you are using the Telerik UI for ASP.NET MVC bundle, please refer to the following Ajax Binding article, where you could find a detailed example on how to setup the widget correctly with the TreeView HtmlHelper:


    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top