tavaresilva
unread,Apr 2, 2009, 6:50:04 AM4/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ftr-gwt-library
Hello all,
I would like the possibility to set drag&drop/resizable individually
for each event.
As far as i can understand this is only possible to set for the whole
calendar/events through the enableDragAndDrop method (resize also??)
in the DateRenderer interface implementation (the provided
implementation of that is DefaultStringPanelRenderer).
I want that so that i can let a user see events other users added but
not allowing him to change them. On the other hand the user should be
able to add their own events and for those, he should be able to
drag&drop/resize them.
I am already able to control if a user can add/view/remove/edit events
on a calendar by just changing the provided default implementation of
the renderer, but if a user can't edit an event he shouldn't be able
to drap&drop/resize and event, or if a user can add events he should
be able to drag&drop/resize. So, setting enableDragAndDrop method
doesn't work for what i need.
For what i can tell there's no way of doing that without changing the
core library, and it would mean changing at least the Day/Week/Month
Panels.
I'm thinking that controlling whether and event is Draggable/Resizable
can be done in the repaintPanel method of DefaultDayField and
DefaultMonthField. I also think that the Day/Month field would need
tho have a reference to the Panel that has it.
Does someone have any suggestion on how to accomplish this?
Thank you very much.