TMSFNCTreeView - different editors in same column

  1. How can I have different editors in same column?
  2. How can I fill TComboBox-Items in same column dynamically for each row?
    Thanks for help
  1. Use the OnGetInplaceEditor event to specify which editor needs to be used for which column & which node
  2. Use the OnCustomizeInplaceEditor event and add items there after typecasting the combobox.

Ok, OnCustomizeInplaceEditor is what I was missing, I was looking for that at "OnGetInplace..."

Nice, ...works, thanks!

I have 2 more issues i could not find solution in web/demos/forum:
. seems that I have to click three times (1 Node select, 2 ComboBox shown, 3 ComboBox PopUp) until combobox-popup is shown. Is there a way to optimize this, e.g. some kind of DirectEdit/ImmediateEditor
. when using ComboBox with OnNodeChanged/OnCloseImplaceEditor the event triggers after closing ComboBox AND leaving focused row. How can I catch the event just after closing ComboBox (before changing focused row)?

  1. You can do this with
  TMSFNCTreeView1.Interaction.MouseEditMode := tmemSingleClick;
  1. The OnCloseInplaceEditor is called before changing the focused row, from the mouse down, but afterwards the focused node is changed to the new node you have clicked on. The OnCloseInplaceEditor should be called with the correct node information while editing.

Thanks for reply.

  1. The ComboBox now shows up immediatly when clicking, ok. But when I click on next node (without popping up current ComboBox) then OnCloseInplaceEditor/NodeChanged triggers even though I made no change. Also I have to click again to really get the focus to the next node. Or is that expected behaviour?

  2. OnCloseInplaceEditor is still not called on ComboBox/OnClosePopup. I also tried to use ComboBox/OnClosePopup event but then the node editor content is not posted/committed yet?! Can I post the editor content explicit then?

  1. Yes this is expected behavior.
  2. The OnCloseInplaceEditor is only called when fully closing the editor which means that the editor is freed