Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Saving preferences in a editable tree

1 view
Skip to first unread message

Ankit Ahuja

unread,
Dec 29, 2009, 4:26:10 AM12/29/09
to
I am trying to implement an editable tree in which I am trying save
the preference string every time the user makes a change to the tree
using the 'onsynctopreference' event handler.

However, when I remove an element from the tree, this event handler
doesn't get called and I am manually saving the preference string.
Also, for adding an entry, I am using the startEditing method. Here,
the event handler does get called but since the label of the treecell
is only set once stopEditing is called, the preference string does not
get updated with the new value.

This has got me totally confused. You should get a better idea once
you look at the code

Here is the relevant code: http://pastie.org/759802

I will absolutely love some help on this. Thanks.

0 new messages