This is a migrated thread and some comments may be shown as answers.

Node expand causes page refresh

1 Answer 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 25 Apr 2014, 03:07 PM
Hello,

I'm using a radtreeview that is being populated by my database.  On initial load it loads the starting options. When a node is expended the the _NodeExpand event is fired.  This populates the next level of nodes.  Some of these nodes have checkbox code within the html that is loaded.  That all displays and works fine until I go to a different starting option node and expand it.  This cases the page to reload and my checkboxes disappear but the original nodes are expanded.  How can I prevent the reloading of this page so my users can open all different nodes and see the checkboxes?  

Thank you

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 30 Apr 2014, 11:48 AM
Hello,

Thank you for contacting Telerik Support.

I would like to clarify that we are not aware of such issue. Could you please clarify whether you are applying template at run-time? If yes - could you please share how exactly you are applying the the templates to the nodes added in the node expand server-side event handler and whether you are applying the template to all existing nodes in the Page_Load event handler as shown in this help article.

If you are not using templates then I assume that you simply set the RadTreeView Checkboxes property to true. In this case reloading the page should not affect to the check boxes. For reference I attached a sample project that has the RadTreeView Checkboxes enabled and implements very similar scenario.

Hope that this will be helpful.


Regards,
Boyan Dimitrov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Jerry
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or