禁用SharePoint日历中的拖放事件

时间:2011-12-15 17:59:19

标签: sharepoint-2010

是否可以在SharePoint日历中禁用拖放事件?我查看了SPCalendar控件中的所有可用属性,但我没有找到任何属性。

渲染Javascript在工厂类中有一个参数来控制这种行为,但不确定我是否可以通过代码隐藏或Javascript访问它:

SP.UI.ApplicationPages.CalendarContainerFactory.create(document.getElementById('ctl00_m_g_67e2a6e7_070b_4dbd_8082_cdb772ec594e_ctl00_ctl01_ctl00_ctl00'),{ctxId:'WPQ1',dataSources:[{id:'00000000-0000-0000-0000-000000000000',name:'',color:'',formUrl:'\u002fLists\u002fCorpCalendar\u002fDispForm.aspx',primary:true, **disableDrag:true**}],userInfo:{current:{id:'27',loginName:'ACME\\Test',displayName:'Test',email:'Test@acme.com'}},enablePeople:false,enableResource:false,usePostBack:false,canUserCreateItem:true,sharedPickerClientId:null,reservationContentTypeId:'0x0102004F51EFDEA49C49668EF9C6744C8CF87D',aM12String:'12:00 am',serviceUrl:'\u002f_layouts\u002fCalendarService.ashx'},'day','',[{"Options":41,"Table":null,"DatePicker":null,"Dates":["12/12/2011","12/13/2011"],"RangeJDay":[150094,150094],"Navs":null,"Items":{"Data":[[0,1,2,150094,150094,3,3,4,5,12,0,30,0,0,0,2,6]],"Strings":["1158","Test Meeting","","12/12/2011","12:00 pm","12:30 pm","0x7fffffffffffffff"]}}]); 

提前致谢。

1 个答案:

答案 0 :(得分:0)

我提供了Kai在sharepoint.stackexchange.com上提供的答案的链接:

https://sharepoint.stackexchange.com/questions/25321/disable-drag-and-drop-events-in-sharepoint-calendars