Good Day All
I am working looking at the Demo, The Demo Shows the Grouped by Field Distinctively , but mine keeps on repeating its self. i have a screenshot attached. Please help.
My Schedular is defined like this
and the Sqldatasource is defined as follows
and my code behind where i binding the number of slot
Thanks
I am working looking at the Demo, The Demo Shows the Grouped by Field Distinctively , but mine keeps on repeating its self. i have a screenshot attached. Please help.
My Schedular is defined like this
<telerik:RadScheduler ID="RadScheduler1" ColumnWidth="2000px" RowHeaderWidth="2000px" DayView-GroupingDirection="Vertical" RowHeaderHeight="500px" runat="server" DataSourceID="SqlDataSource2" DataEndField="ENDDATE" DataKeyField="ID" Skin="Telerik" DataSubjectField="SUBJECTS" DataStartField="STARTDATE" AllowDelete="False" AllowEdit="False" AllowInsert="False" DayEndTime="20:00:00" OverflowBehavior="Expand" SelectedView="MonthView" OnDataBound="RadScheduler1_DataBound" OnAppointmentCreated="RadScheduler1_AppointmentCreated" CssClass="ConfigurationPanel1" OnTimeSlotCreated="RadScheduler1_TimeSlotCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" GroupingDirection="Vertical" EnableViewState="False" DisplayDeleteConfirmation="False" EnableAdvancedForm="False" EnableResourceEditing="False" ReadOnly="True" MinutesPerRow="60" OnAppointmentCommand="RadScheduler1_AppointmentCommand"> <TimelineView GroupBy="SESS" GroupingDirection="Vertical" /> <ResourceTypes> <telerik:ResourceType KeyField="SESS" Name="SESS" TextField="SESS" ForeignKeyField="SESS" DataSourceID="SqlDataSource2" /> </ResourceTypes> <DayView GroupingDirection="Vertical" /></telerik:RadScheduler>and the Sqldatasource is defined as follows
<asp:SqlDataSource ID="SqlDataSource2" EnableCaching="true" runat="server" ConnectionString="Data Source=(local);Initial Catalog=oDirectv3;Persist Security Info=True;User ID=o;Password=abacus" SelectCommand="sp_Timetable_View" DeleteCommand="sp_Timetable_View" ProviderName="<%$ ConnectionStrings:DBConnectionString.ProviderName %>" DeleteCommandType="StoredProcedure" SelectCommandType="StoredProcedure" OnSelecting="SqlDataSource2_Selecting"> <SelectParameters> <asp:SessionParameter DefaultValue="" Name="selectionType" SessionField="viewOptions" Type="String" /> <asp:SessionParameter DefaultValue="" Name="selectedItems" SessionField="selectedItems" Type="String" /> <asp:SessionParameter DefaultValue="" Name="selectedTerms" SessionField="selectedTerms" Type="String" /> <asp:Parameter Name="RangeStart" /> <asp:Parameter Name="RangeEnd" /> </SelectParameters> <DeleteParameters> <asp:Parameter Name="selectionType" Type="String" /> <asp:Parameter Name="selectedItems" Type="String" /> <asp:Parameter Name="selectedTerms" Type="String" /> </DeleteParameters>and my code behind where i binding the number of slot
protected void Page_Load(object sender, EventArgs e){ if (!Page.IsPostBack) { BLL.BLL obj = new BLL.BLL(); try { int Day = obj.Get_Max_Day_Viewer(Convert.ToString(Session["ActiveDatabase"])); //RadScheduler1.WeekView. = Day; RadScheduler1.TimelineView.NumberOfSlots = Day; //it makes sure that the Viewer is showing the date of the timetable RadScheduler1.SelectedDate = obj.Get_Selected_Date_Viewer(Convert.ToString(Session["ActiveDatabase"])); } catch (SqlException ex) { lblMessage.Visible = true; lblMessage.Text = ex.Message; } finally { obj = null; } } }Thanks