Hi,
I am trying to assign a value to a CustomAttribute in code server side.
So far everything else is working OK, but not sure if I need to take a different approach.
The RadScheduler1.Attribute("StaffID") obviously needs mapping to the StaffID column returned in the datatable, but doing the above is not going to work. Do I need to loop through the datatable and manually assign this, or is there an easier method of allocating the StaffID column in the Datatable to the Custom Attribute of the RadScheduler?
Using RadScheduler in ASP.Net AJAX Version=2008.3.1210.20
David Penny
I am trying to assign a value to a CustomAttribute in code server side.
So far everything else is working OK, but not sure if I need to take a different approach.
Dim lv As New dbLeave |
Dim dt As New DataTable |
dt = lv.StaffOtherLeave(StaffID, dateFrom, dateTo, Team) |
RadScheduler1.DataKeyField = "UniqueID" |
RadScheduler1.DataStartField = "DateFrom" |
RadScheduler1.DataEndField = "DateTo" |
RadScheduler1.DataSubjectField = "Subject" |
RadScheduler1.Attributes("StaffID") = "StaffID" |
RadScheduler1.DataSource = dt |
RadScheduler1.DataBind() |
The RadScheduler1.Attribute("StaffID") obviously needs mapping to the StaffID column returned in the datatable, but doing the above is not going to work. Do I need to loop through the datatable and manually assign this, or is there an easier method of allocating the StaffID column in the Datatable to the Custom Attribute of the RadScheduler?
Using RadScheduler in ASP.Net AJAX Version=2008.3.1210.20
David Penny