treeview : collapse all / expand all problem

treeview : collapse all / expand all problem

Hi!

I'm using treeview in my application that supposed to display large amount of data
and I've faced the problem with "collapse all"/"expand all" control - it takes a lot of time to open (or close) all treeview; sometimes I get this warning message :



This is my code:

    function treeviewInit() {  
        $("#tree").treeview({
            animated: "fast",
            collapsed: true,
            persist: "location",
            control: "#sidetreecontrol",
            prerendered: false
        });       
    }      

Is there something I can do in order to resolve this issue?

Thanks In Advance,
Katy Tovbin.