Scheduler - Group By displays no data

2 posts, 0 answers
  1. Louise
    Louise avatar
    9 posts
    Member since:
    Oct 2012

    Posted 10 Oct 2012 Link to this post

    I have the following scheduler which is bound to a datatable in the codebehind

    <telerik:RadScheduler runat="server" ID="RadScheduler1" StartEditingInAdvancedForm="false"

    Width="100%" DayStartTime="08:00:00" DayEndTime="18:00:00" Height="565px" WeekHeaderDateFormat="dd-MMM-yyyy"



    DisplayDeleteConfirmation="False" AllowDelete="false"


    DataKeyField="ID" DataSubjectField="Title" DataStartField="StartDate" DataEndField="EndDate"

    FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" SelectedView="MonthView"



    In the codebehind:


    OleDbDataAdapter dbAdapter = new System.Data.OleDb.OleDbDataAdapter(SelectCommand, dbCon);

    DataSet ds = new DataSet();


    RadScheduler1.DataSource = ds.Tables[0]


    //RadScheduler1.GroupBy = "title";


    //RadScheduler1.GroupingDirection = GroupingDirection.Vertical;


    The select command contains the field title, which is the name of the group. This all works fine until the group by code is put back in and then nothing is displayed.

    Any help appreciated thanks.
  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 15 Oct 2012 Link to this post

    Hello Louise,

    Considering the provided markup code I would like to suggest you to review our online demo that shows GroupBy functionality and our help article. Please keep in mind that:

    1. RadScheduler grouping functionality works only with resources.
    2. If any resource name is identical with any of the data source fields such as "Subject" for example it will cause an unusual behavior.

    I hope this was helpful.

    Boyan Dimitrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top