4 Answers, 1 is accepted
The behavior is expected. The dirty flag is changed because the selected field of the item will be changed when the node is selected. There isn't a way to prevent this but you could use the dataSource change event to set the previous dirty value when the selected field is changed e.g.
Thanks for the answer, it works perfectly. I suppose that if i want to avoid this behaviour when a node is expanded, i just need to replace the codewith
I don't know if there is more events linked to navigation between nodes. I want to avoid the dirty state in this cases.
The updated condition should be sufficient. The only other field that will automatically be set by the treeview is the checked field.
that's all i need to know.
Thanks for the info.