I have a treeview that I use to insert data. I use the labels of the nodes in the treeview to get data. After each change in the tree view labels, I need to validate their info so I handle the after label edit event. The only problem is that the changes in the text of the nodes doesn't reflect in the handler so it always does a bad validation. The changes in the text are always reflected after the handler finishes.
Prior to this I have another handler,ondoubleclick, that clears the text of the node and basically when I validate the nodes they don't have any text to validate because the changes that the user does to the text get in motion after this. Is this normal behaviour? And is there a way to validate the modified text and clear the text prior to this? Are there any other events that I can use? Basically what I want is for the user to double click some specific nodes, their text gets erased to they can type a new one, and after that I want to validate the text and if it'f valid, the changes are kepts, otherwise the text gets set back.
Question
Cold Blood
I have a treeview that I use to insert data. I use the labels of the nodes in the treeview to get data. After each change in the tree view labels, I need to validate their info so I handle the after label edit event. The only problem is that the changes in the text of the nodes doesn't reflect in the handler so it always does a bad validation. The changes in the text are always reflected after the handler finishes.
Prior to this I have another handler,ondoubleclick, that clears the text of the node and basically when I validate the nodes they don't have any text to validate because the changes that the user does to the text get in motion after this. Is this normal behaviour? And is there a way to validate the modified text and clear the text prior to this? Are there any other events that I can use? Basically what I want is for the user to double click some specific nodes, their text gets erased to they can type a new one, and after that I want to validate the text and if it'f valid, the changes are kepts, otherwise the text gets set back.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts