DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding

3 posts, 1 answers
  1. Vinix
    Vinix avatar
    32 posts
    Member since:
    Jan 2008

    Posted 01 Mar 2008 Link to this post

    I drag a RadScheduler to my webform, and start debug, then I get an error message as following. Please tell me how to solve the problem. Thank you very much for your helping.

    DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [ArgumentException: DataKeyField, DataSubjectField, DataStartField and DataEndField are required for databinding]
    Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.EnsureDataFieldsAreSet() +205
    Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.GetAppointments(RadScheduler owner) +130
    Telerik.Web.UI.RadScheduler.PerformSelect() +240
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
    Telerik.Web.UI.RadScheduler.EnsureDataBound() +116
    Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +144
    Telerik.Web.UI.RadScheduler.CreateChildControls() +47
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +41
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Control.PreRenderRecursiveInternal() +161
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

  2. Answer
    Piyush
    Piyush avatar
    155 posts
    Member since:
    Nov 2007

    Posted 02 Mar 2008 Link to this post


    Error says it all. These fields need values to be able to display the Scheduler. Have you assigned any values for them?

  3. DevCraft Release
  4. Vinix
    Vinix avatar
    32 posts
    Member since:
    Jan 2008

    Posted 02 Mar 2008 Link to this post

    I already solve the problem.
    Thank you very much.

Back to Top