0
我在我的asp.net应用程序中使用daypilot schedular。我如何在代码后面获取DataValuefield的值。在代码后面获取DayPilot的DataValueField
<DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server"
DataStartField="start"
DataEndField="end"
DataIdField = "AppId"
DataTextField="name"
DataValueField="id"
ViewType="Gantt"
>
</DayPilot:DayPilotScheduler>
我试过e.Value,但它变得DataIdField
。如何获得DataValueField
?
Protected Sub DayPilotScheduler1_EventMove(ByVal sender As Object, ByVal e As EventMoveEventArgs)
Dim id as string = e.Value //gets DataIdField
End Sub
什么是不工作的你'Event'或'e.Value '声明?您的DayPilotScheduler1_EventMove会在更改时被解雇吗?如果没有,我认为你应该添加'EventMoveHandling =“PostBack”'来回发你的事件。 –
事件触发和e.Value包含“AppId”。我也需要得到“id” – Abdul