Move events between calendars - fullcalendar

How do I enable dragging of events between different fullcalendars on the same page?

If you set the editable property to 'true' it will allow you to drag events.
http://arshaw.com/fullcalendar/docs/event_ui/editable/

I've updated the external-dragging demo and posted the code to the comments on http://code.google.com/p/fullcalendar/issues/detail?id=550.
You will have to remember which calendar you are dragging from (on dragStart) so that you can move the event from on calendar to the other.
Hope this helps.

Related

FullCalendar - week view events display vertical order

Is it possible to show the events one below the other like the image?i want view week with events vertical order
sorry my English is not perfet
No, it is not possible without editing the source code of fullcalendar.
The best you can do is set eventOverlap: false so that users at least cannot drag and drop the events to have the same time.
You can also try fullcalendar's scheduler plugin which will do almost the same. Search the documentation for vertical resources layout.

Scroll while dragging event from top to bottom of fullcalendar

I have used Fullcalendar-2.0.0 plugin to built a page which shows a events on the calendar.
Everything is working fine.
But just wanted to know is there any way to scroll the calendar while dragging particular events?
It is working while we drag event in browser but I want to do the same for mobile devices, but I am unable to make it working.
Any help would be appreciated.
Thank you.

Image grayed out when disabled

Is this possible not to grayed out control when it is disabled?
I need to use custom calendar control which has third party rjs calnedar control with image and textbox but when i disabled them they grayed out which i think it suppose to do.
Is there any way not to grayed out calendar image when disabled?
ADDED
It looks like that third party calendar is showing different calendar image denpends on disable property of this control.
Is there any way to change the image which is already rendered?
There is one custom control which has text box and third party calendar.
Just go to that source: /PopCalendar, copy calender image ex: Calendar.gif and replace it with DisabledCalendar.gif. problem solved..

Disable UIPageViewController when ModalViewController opened

I am totaly new to this site, but I already like it :-)
I found it by searching for a question about the UIPageViewController.
I have a normal UIPageViewController App, in which I open a ModalViewController for setting up some settings...
Now the Problem: :-)
If I click on the done Button on the right side of the ModalView, to dismiss it, the PageViewController turnes the page, because he thinks that he is meant by that click ;-)
Can I disable the PageViewController GestureRecognizer as long as I have a ModalView opened?
Is there a method to disable and later his recognizer?
thank you for your help in advance...
cu Matze
It seems odd that your UIPageViewController would steal touches from a modal view presented over it. Unless, perhaps, you are embedding the modal view within the content of the UIPageViewController?
To answer your question -- you can easily disable the page view controller's gesture recognizers by enumerating its gestureRecognizers property (an NSArray):
for (UIGestureRecognizer *gr in [self.pageViewController gestureRecognizers]) {
[gr setEnabled:NO];
}
Re-enable them later with setEnabled:YES.
UPDATE:
In iOS 6 UIPageViewControllerTransitionStyleScroll has been added. UIPageViewControllers that use this transition style return no gesture recognisers in the array returned by gestureRecognizers. Presumably page view controllers with this transition style use an underlying, private UIScrollView instance (it behaves just like a UIScrollView with paging enabled), although I haven't checked this.

ASP.NET Ajax ReOrderList - Any way to disable specific items from being dragged and dropped?

I have an ajax controltoolkit reorderlist within an asp.net application.
I need to disable certain specific steps from being reordered. This has to be done dynamically. All steps are consecutive and start from the beginning, but it's not known until runtime how many need to be disabled from being reordered any further.
I tried the e.item.enabled = false for reorderlist_itemdatabound but this just disabled links. I need to disable the drag handler.
Any help is greatly appreciated. Thanks!
To be honest, I'm not too familiar with this control, but...
You need to hide the drag handler div (or whatever is in the 'DragHandleTemplate' I believe) and/or change its class. Two suggestions:
1) Add a javascript startup script to disable the divs in question.
2) Subclass this control... Override the Render() method. Replace it with original code from ReorderList, but check the Item to see if you should render the drag handle.
as a workaround to disable drag'n'drop for some item - you can set width=0 to the control inside <DragHandleTemplate> </DragHandleTemplate>. Thus user won't be able to pick the item for dragging.
Suppose you have an image with id dragme in DragHandleTemplate; you can do this in the ItemDataBound handler:
Image dragMe = (Image)((TableRow)e.Item.Controls[0].Controls[0]).Cells[0].Controls[0].FindControl("dragMe");
dragMe.Style.Add(HtmlTextWriterStyle.Visibility, "hidden");
This way you preserve the alignment.

Resources