Scheduler andRadPanel

2 posts, 0 answers
  1. Yannick
    Yannick avatar
    7 posts
    Member since:
    Apr 2012

    Posted 07 May 2012 Link to this post

    Here is my code :

    <%@ Page Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false" CodeBehind="Calendar.aspx.vb" Inherits="Digicontacts_Web_Final.Calendar" %>

    <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

    <asp:Content ID="content1" ContentPlaceHolderID="MainContent" runat="server">

        <div id="settings-container">
        <script type="text/javascript">
            function rebindScheduler() {
                var scheduler = $find('<%=RadScheduler1.ClientID %>');
        <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="200px"
                        <telerik:RadPanelItem runat="server" Text="Mes Agendas" ForeColor="#404040">
                                <telerik:RadPanelItem runat="server" ForeColor="#404040">
                                        <div class="rpCheckBoxPanel">
                                            <telerik:RadTreeView ID="RadTreeView2" Runat="server" CheckBoxes="True"
                                                DataSourceID="SqlDataSource1" DataTextField="calendar_name"
                                            <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                                                ConnectionString="<%$ ConnectionStrings:vicidial_V4ConnectionString %>"
                                                ProviderName="<%$ ConnectionStrings:vicidial_V4ConnectionString.ProviderName %>"
                                                SelectCommand="SELECT calendar_name FROM digi_calendar"></asp:SqlDataSource>
        <div id="scheduler-container">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
                ConnectionString="<%$ ConnectionStrings:vicidial_V4ConnectionString2 %>"
                ProviderName="<%$ ConnectionStrings:vicidial_V4ConnectionString2.ProviderName %>"
                SelectCommand="SELECT id, start_date_time, end_date_Time, subject, description, location FROM digi_calendar_events">
            <telerik:RadScheduler ID="RadScheduler1" runat="server" Culture="fr-FR"
                DataDescriptionField="location" DataEndField="end_date_Time" DataKeyField="id"
                DataSourceID="SqlDataSource1" DataStartField="start_date_time"
                DataSubjectField="subject" EnableDescriptionField="True" Height="600px"


    I would like to view by appointment only if I check the box on my agenda but I do not know.
    Can you help me?
  2. Ivana
    Ivana avatar
    657 posts

    Posted 10 May 2012 Link to this post

    Hello Yannick,

    Take a look at the following online demo of RadScheduler: It shows how to filter appointments by resources by checking/unchecking the CheckBoxes representing the appointments' resources.

    In you case if you are using a RadTreeView to represent the appointments' resources you should take advantage of the client API of the RadTreeView to manipulate the appointments shown in the RadScheduler.

    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