Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Modify appointments (Read 2622 times)
Ionut Murarasu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: May 4th, 2017
Modify appointments
Aug 1st, 2017 at 12:22pm
Print Post  
Hello,

I see that if you want to block the user from edit the text from appointments you have to call calendar.setAllowInplaceEdit(true) - using this functionality all the appointments from the calendar are read only, can't be edited;

But if I want to block only a few appointments from my calendar to be read only ?

For example I have 10 appointments, 5 of them I want to be read only(user can't change the text) and rest of them I want to let the user to modify the text.

Can you help me please with this problem?

Thanks,
Ionut.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Modify appointments
Reply #1 - Aug 1st, 2017 at 2:26pm
Print Post  
Hi,

You should listen to the itemInplaceEditStarting event of the calendar:

Code
Select All
calendar.addCalendarListener(new CalendarAdapter() {
    void itemInplaceEditStarting(ItemConfirmEvent e) {
        if (!canEdit(e.getItem())
            e.setConfirm(false);
    }
}); 


The canEdit function should check if the item can be in-place edited.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Ionut Murarasu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 10
Joined: May 4th, 2017
Re: Modify appointments
Reply #2 - Aug 3rd, 2017 at 6:48am
Print Post  
Was useful.
Thanks !
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint