c# - Set edit mode as default behavior when adding a new item in a tree -


i have treeview can simple operations expand, add new item, edit, delete, copy , paste, rename, etc.

what want that, when click "add item", creates , shows in edit mode, can set new name it. right now, assign generic name "new item x".

i hope there easy solution i'm missing here. im working wpf way (i don't think it's necessary put code samples here, if i'm wrong, , i'll edit post).

got it!

i used refresh() function called every second, refreshing tree. handles addcommand, when try add new item, receives request, set editname property true , that's it!

obs: couldn't see other way, couldn't set focus new created item.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -