TimelineView Display

5 posts, 0 answers
  1. Vuyiswa Maseko
    Vuyiswa Maseko avatar
    187 posts
    Member since:
    Jan 2010

    Posted 08 Jul 2010 Link to this post

    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

    <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
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 13 Jul 2010 Link to this post

    Hello Vuyiswa,

    Which demo are you refering to? Can you be more specific as to what the problem is in your case?

    Kind regards,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vuyiswa Maseko
    Vuyiswa Maseko avatar
    187 posts
    Member since:
    Jan 2010

    Posted 14 Jul 2010 Link to this post

    Good Day

    In my reply , the demo word is a link, I want to use Timelineview and the Demo has resources(Rooms) on the Left hand side and i have the Periods, now if i do a group by to add the Periods on the left hand side, i get duplicated periods as depicted in the image i have attached. in the Image you will see "1" on the far left and if you scroll down(does not show in the image) you will see another 1 again , i want it to group the Appointments based on the Periods.

    i hope i explained better

    Thanks
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Jul 2010 Link to this post

    Hi Vuyiswa,

    The Resource Grouping demo shows what can be achieved with RadScheduler. I suggest you test it and decide if your requirement is possible with RadScheduler.


    Best wishes,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017