Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic EnterInplaceEdit and LeaveInPlaceEdit events (Read 1555 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
EnterInplaceEdit and LeaveInPlaceEdit events
Jul 19th, 2011 at 11:44am
Print Post  

Hi Stoyo

In my application, I want to cancel the EnterInPlaceEdit event based on some conditions.

It seems it is not possible.

Also, when LeaveInPlaceEdit event is fired, I am not able to get whether it is fired due to cancel or enter event ( i.e EndEdit(true) or EndEdit(false) caused it) - ( For this I need to compair old value of node/link with new value but it would be nice if that accept/cancel operation is available thro event argument )

-Rajesh


  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: EnterInplaceEdit and LeaveInPlaceEdit events
Reply #1 - Jul 19th, 2011 at 12:01pm
Print Post  
Hi Rajesh,

You can disable AllowInplaceEdit and explicitly call Diagram.BeginEdit from the NodeDoubleClicked handler only if the node meets these conditions. Handle NodeTextEdited to find out if the node text has changed.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint