In this blog we are explaining how to adding data to jqxtree dynimacally on click of nodes of a tree using AJAX call. We have explained with complete code and steps.
There might be a case where user wants to add data to jqxtree on click of each individual node. Below is the code which help us to achieve the above functionality where user can get data from JSON file or database on click of each individual tree node , depending whether parent have child nodes or not. Check below code.
Read full blog at- Adding data to jqxtree dynimacally on click of nodes of a tree using AJAX call .
You can check more informative blogs and tutorials at android development blogs section and can also browse the android developer forum for posting and viewing latest questions on android development.
There might be a case where user wants to add data to jqxtree on click of each individual node. Below is the code which help us to achieve the above functionality where user can get data from JSON file or database on click of each individual tree node , depending whether parent have child nodes or not. Check below code.
- <script type="text/javascript">
- $(document).ready(function () {
- var theme = "";
- // Create jqxTree
- var tree = $('#topictree');
- var source = null;
- $.ajax({
- async: false,
- url: "topic.php",
- success: function (data, status, xhr) {
- source = jQuery.parseJSON(data);
- }
- });
- tree.jqxTree({ source: source, theme: theme, height: 600, width: 400 });
- .....
You can check more informative blogs and tutorials at android development blogs section and can also browse the android developer forum for posting and viewing latest questions on android development.
No comments:
Post a Comment