This is a migrated thread and some comments may be shown as answers.

Scheduler - Group By displays no data

1 Answer 56 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Louise
Top achievements
Rank 1
Louise asked on 10 Oct 2012, 09:07 AM
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"

TimelineView-HeaderDateFormat="dd-MMM-yyyy"

 

DisplayDeleteConfirmation="False" AllowDelete="false"

 

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

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

onappointmentdatabound="RadScheduler1_AppointmentDataBound">

</telerik:RadScheduler>


In the codebehind:

System.Data.OleDb.

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

DataSet ds = new DataSet();

dbAdapter.Fill(ds);

RadScheduler1.DataSource = ds.Tables[0]

 

//RadScheduler1.GroupBy = "title";

 

//RadScheduler1.GroupingDirection = GroupingDirection.Vertical;

RadScheduler1.DataBind();


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.

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 15 Oct 2012, 10:32 AM
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.


Regards,
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.
Tags
Scheduler
Asked by
Louise
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or