2013-07-09 39 views

回答

1

如果使用dhtmlxScheduler爲.NET(隨DHTMLX.dll)控件必須添加到C#中,而不是JavaScript。 有幾類收藏的控制,如果你有調度的試用包可​​以使用它們很容易

 var scheduler = new DHXScheduler(this); 
     var select = new LightboxSelect("type", "Type"); 
     select.AddOptions(new List<object>{ 
      new { key = 1, label = "Job" }, 
      new { key = 2, label = "Family" }, 
      new { key = 3, label = "Other" } 
     }); 
     scheduler.Lightbox.Add(select); 

這裏是整個文檔http://scheduler-net.com/docs/lightbox.html ,檢查Samplese/Scheduler.MVC3 /控制器/ AddRangeController。 CS,有一個使用的例子。

如果期運用客戶端組件,下面是相關文檔 http://docs.dhtmlx.com/scheduler/lightbox_editors.html

修改源代碼文件是不推薦,因爲它會導致問題與更新的組件的新版本。

僅供參考,我爲DHTMLX工作

0

我發現這個解決方案: 修改文件dhtmlxscheduler.js我的意思是section領域:

lightbox: { 
     sections: [ 
      { name: "description", height: 40, map_to: "text", type: "textarea", focus: true }, 
      { name: "Note", height: 40, map_to: "text", type: "textarea", focus: true }, 
      { name: "Status", height: 40, map_to: "text", type: "textarea", focus: true }, 
      { name: "Type", height: 40, map_to: "text", type: "textarea", focus: true }, 
      { name: "Sequence", height: 40, map_to: "text", type: "textarea", focus: true }, 
      {name: "time", height: 72, type: "time", map_to: "auto"} 
     ] 
    }, 

labels:{ 
     dhx_cal_today_button:"Today", 
     day_tab:"Day", 
     week_tab:"Week", 
     month_tab:"Month", 
     new_event:"Nouvelle Tache", 
     icon_save:"Save", 
     icon_cancel:"Cancel", 
     icon_details:"Details", 
     icon_edit:"Edit", 
     icon_delete:"Delete", 
     confirm_closing:"",//Your changes will be lost, are your sure ? 
     confirm_deleting:"Event will be deleted permanently, are you sure?", 
     section_description: "Description", 
     section_Note: "Note", 
     section_Status: "Status", 
     section_Type: "Type", 
     section_Sequence: "Sequence", 
     section_time:"Periode",