I have a schedule control on a page where I cannot bind the control until the user has performed some actions on the page. In the event where I can bind the control I have the following code:
Any hints? I understand that these fields are needed to do the bind, but I don't want the bind to occur yet.
Also, is there a way to programattically add items onto the schedule versus binding?
Thanks
Chris
| Me.rdSchedule.Visible = True |
| Me.rdSchedule.DataSource = goDataTable |
| Me.rdSchedule.DataKeyField = "DataKey" |
| Me.rdSchedule.DataStartField = "StartDate" |
| Me.rdSchedule.DataEndField = "EndDate" |
| Me.rdSchedule.DataSubjectField = "DisplayText" |
| Me.rdSchedule.DataBind() |
My problem is, the following error is being thrown prior to the page actually being displayed the first time.
Message: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding
Source: Telerik.Web.UI
Any hints? I understand that these fields are needed to do the bind, but I don't want the bind to occur yet.
Also, is there a way to programattically add items onto the schedule versus binding?
Thanks
Chris