获取 DayPilot Scheduler 的 DataResourceField 值
Get DataResourceField value of DayPilot Scheduler
我想获得 DataResourceField
值,当 Move 事件是 triggered.Below 是我的 DayPilot 代码。
<DayPilot:DayPilotScheduler ID="dplRoom" runat="server" HeaderFontSize="8pt"
HeaderHeight="20"
DataStartField="BookStartDate"
DataEndField="BookEndDate"
DataTextField="AppName"
DataValueField="BID"
DataResourceField="BedID"
EventHeight="30"
RowMinHeight="30"
EventFontSize="11px"
CellDuration="1440"
BackColor="White"
CssClass="grid"
DurationBarVisible="false"
EventClickHandling="select"
EventClickJavaScript=""
FreeTimeClickJavaScript=""
HeightSpec="Max"
Height="570"
CellGroupBy="Month"
OnTimeRangeSelected="dplRoom_TimeRangeSelected"
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="timeRangeSelected(start, end, resource)"
ShowToolTip="false"
EventMoveHandling = "CallBack"
OnEventMove="dplRoom_EventMove" >
OnEventMove :
Protected Sub dplRoom_EventMove(ByVal sender As Object, ByVal e As EventMoveEventArgs)
Response.Write(e.NewEnd + " " + e.NewStart + " " + e.Value + " " + e.Text)
End Sub
如何在 EventMove
事件中获得 DataResourceField
值。
如有任何帮助,我们将不胜感激。
DataResourceField
实际上获取或设置包含主键的列的名称。
尝试 e.NewResource
获得 DataResourceField
值。
我想获得 DataResourceField
值,当 Move 事件是 triggered.Below 是我的 DayPilot 代码。
<DayPilot:DayPilotScheduler ID="dplRoom" runat="server" HeaderFontSize="8pt"
HeaderHeight="20"
DataStartField="BookStartDate"
DataEndField="BookEndDate"
DataTextField="AppName"
DataValueField="BID"
DataResourceField="BedID"
EventHeight="30"
RowMinHeight="30"
EventFontSize="11px"
CellDuration="1440"
BackColor="White"
CssClass="grid"
DurationBarVisible="false"
EventClickHandling="select"
EventClickJavaScript=""
FreeTimeClickJavaScript=""
HeightSpec="Max"
Height="570"
CellGroupBy="Month"
OnTimeRangeSelected="dplRoom_TimeRangeSelected"
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="timeRangeSelected(start, end, resource)"
ShowToolTip="false"
EventMoveHandling = "CallBack"
OnEventMove="dplRoom_EventMove" >
OnEventMove :
Protected Sub dplRoom_EventMove(ByVal sender As Object, ByVal e As EventMoveEventArgs)
Response.Write(e.NewEnd + " " + e.NewStart + " " + e.Value + " " + e.Text)
End Sub
如何在 EventMove
事件中获得 DataResourceField
值。
如有任何帮助,我们将不胜感激。
DataResourceField
实际上获取或设置包含主键的列的名称。
尝试 e.NewResource
获得 DataResourceField
值。