Hi there,
Originally I would like to build my page like the sample page "Scheduling.Demo", the moments such as item creation/deleting/modification will only change the corresponding item but not refreshing the entire page.
But now my page will do that, seems it is because of I set "AutoPost = true" thus once I delete this autopostback code, the page will not be refreshed itself but also it won't call ItemModifyingscript to change item bar color.
my code:
<MindFusion:Calendar ID="_calendar" runat="server" Height="490px" Width="100%" Theme="Vista"
CurrentView="ResourceView" Culture="(Default)" AutoPostBack="true"
OnVisibleDateChanged="_calendar_VisibleDateChanged" GroupType="GroupByContacts"
ItemCreatingScript="itemCreating" ItemModifyingScript="itemModifying"
CalendarLoadScript="onCalendarLoad"
FormShowScript="formShow" ItemDeletingScript="ConfirmDelete"
OnItemCreated="_calendar_ItemCreated" OnItemDeleted="_calendar_ItemDeleted"
OnItemInplaceEdited="_calendar_ItemInplaceEdited"
OnItemModified="_calendar_ItemModified">
here the first two
ItemCreatingScript="itemCreating" ItemModifyingScript="itemModifying"
is to assign the right color to the item bar on calendar after creation or modification, then the four
OnItemCreated="_calendar_ItemCreated" OnItemDeleted="_calendar_ItemDeleted"
OnItemInplaceEdited="_calendar_ItemInplaceEdited"
OnItemModified="_calendar_ItemModified"
is calling code behind to change the static datatable based on the creation/deletion/modification. I have a button to upload the entire datatable to database after the creation/deletion/modification are completed.
Is there any way that could achieve page creation/deletion/modification but not refresh it until uploading to database?
Say the creation/deletion/modification will only change the back end static datatable, change the corresponding item bar on the calendar, but not refresh the entire page, then once button "Save" is clicked, the datatable will be upload to database.
Right now my page will be refreshed after every reation/deletion/modification.
-----------------------------------
Add:
if I remove autopostback = true and change
ItemModifingScript="itemModifying"
to
ItemModifiedScript="itemModified"
, once I modify the item bar on calendar it will throw error:
Quote:0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'get_changes'
Actually the function "itemModifying" and "itemModified" have the same code.
Thank you!