1

Closed

what is the correct way to use Persist = Cookie for Treeview

description

When i try to use Persist = Cookie, it throws exception saying "missing { after property list".
 
i give treeview options as
 
//new TreeViewOptions()
                //{
                //    Animated = 2,
                //    Unique = true,
                //    Opacity = 1,
                //    CanMove = true,
                //    CanAdd = true,
                //    Persist = TreeViewPersistencyMode.Cookie,
                //    CookieId = "treeview"
                //}

file attachments

Closed by

comments

frankabbruzzese wrote Oct 11, 2011 at 10:11 AM

It is a bug, I attached the dll that should fix the bug. Let me know if this solve or there are still problems. The fix will be added to the SP1 release

meethrishi123 wrote Oct 11, 2011 at 4:46 PM

okay, thanks. i will check and revert. Thanks a lot for the quick response. Appreciate it!

meethrishi123 wrote Oct 13, 2011 at 2:16 PM

I checked. this is working now.
However, i have another problem now. Actually i had modified the jquery.treeview.css to have a different look and feel with version 1.3. Now when i am using version 1.4, the changes made in the client side treeview are not reflected in the POST method of the controller.
I have figured out that the issue is due to the additional css classess that i assigned for the .treeview li li etc.
Is there any specific thing that i need to do to get rid of this problem?

frankabbruzzese wrote Oct 13, 2011 at 10:39 PM

All css rules starting with treeview, treeview-red are needed for the correct operation of the tree. The class treeview is assigned automatically to the tree, if you don't assign any of the other staring with Ttreeview. The ones starting with filetree are used just if you add the filetree class to your tree. They give to the tree the appearence of a file tree with folder and documents.

Changing the one staring with treeview may break the correct operation on the client side....it is difficult for me to imagine how they might break operation on the sever without breaking correct operation on the client.
Sure you have not changed something else in your application?

Do the following:

1) try with the original css and see if the tree works this way
2) if not please schow me me your css in the discussion area (here it is difficult to add code). That is open a new discussion and post me your css, and the definition of your tree,(the complete call to the helper). I will try your css on my machine

frankabbruzzese wrote Oct 26, 2011 at 6:47 PM

Hi meethrishi123 Actually version 1.4 introduced a bug in the trewView, sometimes when node moves(it was intermittent) the change is not reflected on the sever. Sorry for the inconveniende, however the error was intermittent...so the TreeView passed all unit tests. Now this bug is fixed. Sorry again.