if you're thinking of building a tree with AJAX (collapsed initially,
expand with AJAX call) then you need to be using the additional
async.js that requires the returned data (for the branches) in JSON.
iswariak wrote:
> Hi
>
> I am using treeview with AJAX.
>
> But my problem is that when I combine treeview with AJAX, the treeview is
> always in not collapsed (it is in expanded tree)
>
> Can anyone tell how to make the tree collapsed.
>
> Thanks in advance.
>
> <script type="text/javascript">
> $(document).ready(function(){
> $("#tree").treeview({
> animated: "fast",
> collapsed: true,
> unique: true,
> control: "#sidetreecontrol"
> });
> })
>
> </script>
>
> --
> View this message in context:
> http://www.nabble.com/treeview-with-ajax-tp21559732s27240p21559732.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.