views:

42

answers:

1

how to stop dragging / resizing the events where event.id > 100. Only those events should be non draggable.

Updated with Code Sample:

        eventRender: function(event, element) {
        if (event.id > 100) {
              event.disableDragging();
              event.disableResizing();
        }
        element.qtip({
            content: GetEventToolTip(event),
            position: { corner: { tooltip: 'bottomLeft', target: 'topMiddle'} },
            style: {
                border: {
                    width: 1,
                    radius: 5
                },

                padding: 5,
                textAlign: 'left',
                tip: false,
                name: event.iscustom == 'True' ? 'cream' : 'dark'
            }
        });
    }

Thanks in Advance

+2  A: 

i would say:

if(event.id > 100)
{
   event.disableDragging();
   event.disableResizing();
}
Dalen
+1: And, probably the best place to put this would be in the eventRender callback: http://arshaw.com/fullcalendar/docs/event_rendering/eventRender/
sdolan
It's not working, both method says: Error: Object doesn't support this property or method
Saiful
you should post some code to better understand
Dalen
code smaple added
Saiful