Tree item programmatic expand and selection issue

Hi,

Our QA asked us to expand a tree node even if user clicked the node caption, not only the expand item. I just add a listener for the ItemClick event and in the listener code calling the expandItem method of the tree.

So far, everything works fine, but noticed the strange selection effect - after such programmatic node expansion, selection may randomly jump to neighbour items. Am I doing something wrong in my code or this is a bug ?

You may check the behavior here -
http://files.alee.ru/vtb24
- try to click tree captions - after 2-3 clicks you’ll notice the effect.

Upd. Problem solved, this was an immediate effect. setting immediate to true fixed the problem :slight_smile:

Thanks for the tip! I had what sounds like the same problem with my own extension of Table. Setting it to immediate fixed this too!