radScheduler load error

4 posts, 0 answers
  1. jpchenot
    jpchenot avatar
    20 posts
    Member since:
    Jan 2008

    Posted 20 May 2008 Link to this post

    Hi.

    I am using a radscheduler in a radtabstrip. When I first load the page, i get an error on the following javascript function:

    Telerik.Web.UI.Scheduler.ResourceGroupedWeekModel.prototype={initialize:function(){

    var _3=this._owner.get_resources();

    for(var i=0;i<_3.length;i++){

    this._weekModels[i]=new Telerik.Web.UI.Scheduler.WeekModel(this._owner,this._rawModelData);

    this._resources[i]=_3[i];

    }

    The tab of the radscheduler isn't the default tab, butit shouldn't make any difference. I take a projectID from a dropdownlist as a parameter to populate the scheduler.

    This dropdonwlist is not selected at load time. I have set a default value in the radscheduler but still no luck.

    Once I select a value in the dropdownlist, the error disappears. It is only when I 1st load the page.

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 22 May 2008 Link to this post

    Hi Jean-Philippe,

    Could you please send us the code of your implementation? We will have to recreate the problem in a local projct in order to be able to find out what is happening.

    Thanks.
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. jpchenot
    jpchenot avatar
    20 posts
    Member since:
    Jan 2008

    Posted 23 May 2008 Link to this post

    HERE IS THE XHTML CODE FOR THE PAGE.

    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
        EnableViewState="true" CodeFile="projects.aspx.vb" Inherits="_projects" Title="Untitled Page" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
       
        <script type="text/javascript" language="javascript">
            function refreshScheduler()
              {
                 //var ajaxManager = $find("RadAjaxManager1");
                 //ajaxManager.AjaxRequest('RebindScheduler');
              }
        </script>

        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Label runat="server" ID="projIDLabel" Visible="false"></asp:Label>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td class="projects_content_header" valign="middle">
                                        <asp:Panel ID="SelectPanel" runat="server">
                                            <asp:Label ID="ProjectsLabel" runat="server" Text="PLEASE SELECT A PROJECT" AssociatedControlID="ProjectsDropDownList"></asp:Label>
                                            &nbsp;<asp:DropDownList ID="ProjectsDropDownList" runat="server" AutoPostBack="True"
                                                AppendDataBoundItems="True" DataSourceID="LinqDataSource1" DataTextField="Name"
                                                DataValueField="ProjectDetailsID">
                                                <asp:ListItem Value="0">PLEASE SELECT A PROJECT</asp:ListItem>
                                                <asp:ListItem Value="1">----------------------------</asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="blur_MsDataContext"
                                                Select="new (ProjectDetailsID, Name)" TableName="tbl_ProjectDetails">
                                            </asp:LinqDataSource>
                                        </asp:Panel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div class="spacer">
                                            <!-- -->
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Panel ID="ProjectPanel" runat="server">
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td class="message_border" valign="top">
                                                        <asp:Label ID="MessageLabel" runat="server">VIEW THE PROJECT DETAILS BELOW</asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <div class="spacer">
                                                            <!-- -->
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" colspan="2">
                                                        <asp:Label ID="NameLabel" runat="server" Text="PROJECT NAME:" AssociatedControlID="NameContentLabel"
                                                            Font-Bold="True"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <div class="spacer">
                                                            <!-- -->
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="middle">
                                                        <asp:Label ID="NameContentLabel" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <div class="spacer">
                                                            <!-- -->
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" colspan="2">
                                                        <asp:Label ID="FreeFormLabel" runat="server" Text="NOTES:" AssociatedControlID="FreeFormContentLabel"
                                                            Font-Bold="True"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <div class="spacer">
                                                            <!-- -->
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td valign="top" colspan="2" align="justify">
                                                        <asp:Label ID="FreeFormContentLabel" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <div class="spacer">
                                                            <!-- -->
                                                        </div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="spacer">
                                <!-- -->
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td valign="bottom">
                                        <telerik:RadTabStrip ID="RadTabStrip1" MultiPageID="RadMultiPage1" runat="server"
                                            Skin="Default" Width="100%" Align="Right" Orientation="HorizontalTop" AutoPostBack="True"
                                            SelectedIndex="0">
                                            <Tabs>
                                                <telerik:RadTab runat="server" ID="ResourcesTab" PageViewID="RadPageView1" Text="RESOURCES"
                                                    TabIndex="0" Selected="True">
                                                </telerik:RadTab>
                                                <telerik:RadTab runat="server" ID="ScheduleTab" PageViewID="RadPageView2" Text="SCHEDULE"
                                                    TabIndex="1">
                                                </telerik:RadTab>
                                            </Tabs>
                                        </telerik:RadTabStrip>
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" SelectedIndex="0">
                                            <telerik:RadPageView ID="RadPageView1" runat="server">
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td width="33%" valign="top">
                                                            <asp:Panel ID="CompanyPanel" runat="server">
                                                                <div class="sub_header">
                                                                    ASSOCIATED COMPANIES<br />
                                                                    <div class="spacer">
                                                                    </div>
                                                                    <asp:DropDownList ID="CompanyDropDownList" runat="server" Width="70%" AppendDataBoundItems="True"
                                                                        DataSourceID="LinqDataSource2" DataTextField="Name" DataValueField="CompanyDetailsID">
                                                                        <asp:ListItem Value="0">SELECT A COMPANY</asp:ListItem>
                                                                        <asp:ListItem Value="1">----------------------</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                    <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="blur_MsDataContext"
                                                                        Select="new (CompanyDetailsID, Name)" TableName="tbl_CompanyDetails">
                                                                    </asp:LinqDataSource>
                                                                    &#160;&#160;<asp:Button ID="AddCompanyButton" runat="server" Text="ADD" CssClass="TableBlackButton" /><div
                                                                        class="spacer">
                                                                    </div>
                                                                </div>
                                                                <telerik:RadGrid ID="CompanyRadGrid" runat="server" DataSourceID="SqlDataSource1"
                                                                    GridLines="None" AllowSorting="True" AutoGenerateColumns="False" ShowHeader="False">
                                                                    <MasterTableView DataSourceID="SqlDataSource1">
                                                                        <RowIndicatorColumn Visible="False">
                                                                            <HeaderStyle Width="20px" />
                                                                        </RowIndicatorColumn>
                                                                        <ExpandCollapseColumn Resizable="False" Visible="False">
                                                                            <HeaderStyle Width="20px" />
                                                                        </ExpandCollapseColumn>
                                                                        <Columns>
                                                                            <telerik:GridTemplateColumn DataField="CompanyHeaderID" SortExpression="CompanyHeaderID"
                                                                                UniqueName="TemplateColumn0" Display="false">
                                                                                <ItemTemplate>
                                                                                    <asp:Label runat="server" ID="IDLabel" Text='<%# Eval("CompanyHeaderID") %>'></asp:Label></ItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                                                                                UniqueName="TemplateColumn1">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CompanyNameLabel" runat="server" Font-Size="12px" Text='<%# Eval("Name") %>'></asp:Label></ItemTemplate>
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address1" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 1" SortExpression="Address1" UniqueName="TemplateColumn2">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Address1Label" runat="server" Text='<%# Eval("Address1") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address2" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 2" SortExpression="Address2" UniqueName="TemplateColumn3">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Address2Label" runat="server" Text='<%# Eval("Address2") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address3" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 3" SortExpression="Address3" UniqueName="TemplateColumn4">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Address3Label" runat="server" Text='<%# Eval("Address3") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="PostCode" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Post Code" SortExpression="PostCode" UniqueName="TemplateColumn5">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="PostCodeLabel" runat="server" Text='<%# Eval("PostCode") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="City" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="City" SortExpression="City" UniqueName="TemplateColumn6">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="CityLabel" runat="server" Text='<%# Eval("City") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Country" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Country" SortExpression="Country" UniqueName="TemplateColumn7">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="CountryLabel" runat="server" Text='<%# Eval("Country") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Phone1" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Phone 1" SortExpression="Phone1" UniqueName="TemplateColumn8">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Phone1Label" runat="server" Text='<%# Eval("Phone1") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Phone2" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Phone 2" SortExpression="Phone2" UniqueName="TemplateColumn9">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Phone2Label" runat="server" Text='<%# Eval("Phone2") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Fax" Display="false" HeaderText="Fax" SortExpression="Fax"
                                                                                UniqueName="TemplateColumn10">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="FaxLabel" runat="server" Text='<%# Eval("Fax") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="../images/arrow_down.gif"
                                                                                EditText="EDIT">
                                                                                <ItemStyle BackColor="#000000" Width="10%" />
                                                                            </telerik:GridEditCommandColumn>
                                                                            <telerik:GridButtonColumn ButtonType="ImageButton" Text="DELETE" ConfirmDialogType="Classic"
                                                                                ConfirmText="DELETE COMPANY?" ImageUrl="../images/grid/Cancel.gif" CommandName="DeleteCompany">
                                                                                <ItemStyle BackColor="#000000" Width="10%" />
                                                                            </telerik:GridButtonColumn>
                                                                        </Columns>
                                                                        <EditFormSettings>
                                                                            <EditColumn UniqueName="EditCommandColumn1" UpdateText="" CancelText="CLOSE" CancelImageUrl="../images/arrow_up.gif">
                                                                            </EditColumn>
                                                                            <PopUpSettings ScrollBars="None" />
                                                                        </EditFormSettings>
                                                                    </MasterTableView></telerik:RadGrid><asp:SqlDataSource ID="SqlDataSource1" runat="server">
                                                                    </asp:SqlDataSource>
                                                            </asp:Panel>
                                                        </td>
                                                        <td class="spacerW">
                                                        </td>
                                                        <td width="33%" valign="top">
                                                            <asp:Panel ID="StaffPanel" runat="server">
                                                                <div class="sub_header">
                                                                    ASSOCIATED STAFF<br />
                                                                    <div class="spacer">
                                                                    </div>
                                                                    <asp:DropDownList ID="StaffDropDownList" runat="server" Width="70%" AppendDataBoundItems="True"
                                                                        DataSourceID="LinqDataSource3" DataTextField="FullName" DataValueField="StaffDetailsID">
                                                                        <asp:ListItem Value="0">SELECT A STAFF MEMBER</asp:ListItem>
                                                                        <asp:ListItem Value="1">------------------------------</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                    <asp:LinqDataSource ID="LinqDataSource3" runat="server" ContextTypeName="blur_MsDataContext"
                                                                        Select="new (StaffDetailsID, FullName)" TableName="tbl_StaffDetails">
                                                                    </asp:LinqDataSource>
                                                                    &#160;&#160;<asp:Button ID="AddStaffButton" runat="server" Text="ADD" CssClass="TableBlackButton" /><div
                                                                        class="spacer">
                                                                    </div>
                                                                </div>
                                                                <telerik:RadGrid ID="StaffRadGrid" runat="server" GridLines="None" AutoGenerateColumns="False"
                                                                    DataSourceID="SqlDataSource2" ShowHeader="False">
                                                                    <MasterTableView DataSourceID="SqlDataSource2">
                                                                        <RowIndicatorColumn Visible="False">
                                                                            <HeaderStyle Width="20px" />
                                                                        </RowIndicatorColumn>
                                                                        <ExpandCollapseColumn Resizable="False" Visible="False">
                                                                            <HeaderStyle Width="20px" />
                                                                        </ExpandCollapseColumn>
                                                                        <Columns>
                                                                            <telerik:GridTemplateColumn DataField="StaffHeaderID" SortExpression="StaffHeaderID"
                                                                                UniqueName="TemplateColumn0" Display="false">
                                                                                <ItemTemplate>
                                                                                    <asp:Label runat="server" ID="staff_IDLabel" Text='<%# Eval("StaffHeaderID") %>'></asp:Label></ItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="FullName" HeaderText="FullName" SortExpression="FullName"
                                                                                UniqueName="TemplateColumn1">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="StaffNameLabel" runat="server" Font-Size="12px" Text='<%# Eval("FullName") %>'></asp:Label></ItemTemplate>
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Staff_NameLabel" runat="server" Text='<%# Eval("FullName") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address1" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 1" SortExpression="Address1" UniqueName="TemplateColumn2">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Staff_Address1Label" runat="server" Text='<%# Eval("Address1") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address2" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 2" SortExpression="Address2" UniqueName="TemplateColumn3">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Staff_Address2Label" runat="server" Text='<%# Eval("Address2") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address3" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 3" SortExpression="Address3" UniqueName="TemplateColumn4">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Staff_Address3Label" runat="server" Text='<%# Eval("Address3") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="PostCode" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Post Code" SortExpression="PostCode" UniqueName="TemplateColumn5">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Staff_PostCodeLabel" runat="server" Text='<%# Eval("PostCode") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="City" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="City" SortExpression="City" UniqueName="TemplateColumn6">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Staff_CityLabel" runat="server" Text='<%# Eval("City") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Country" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Country" SortExpression="Country" UniqueName="TemplateColumn7">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Staff_CountryLabel" runat="server" Text='<%# Eval("Country") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="HomePhone" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Home Phone" SortExpression="HomePhone" UniqueName="TemplateColumn8">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="HomePhoneLabel" runat="server" Text='<%# Eval("HomePhone") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="MobilePhone" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Mobile Phone" SortExpression="MobilePhone" UniqueName="TemplateColumn9">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="MobilePhoneLabel" runat="server" Text='<%# Eval("MobilePhone") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="DirectLine" Display="false" HeaderText="Direct Line"
                                                                                SortExpression="DirectLine" UniqueName="TemplateColumn10">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="DirectLineLabel" runat="server" Text='<%# Eval("DirectLine") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="HomeEmail" Display="false" HeaderText="Home Email"
                                                                                SortExpression="HomeEmail" UniqueName="TemplateColumn10">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="HomeEmailLabel" runat="server" Text='<%# Eval("HomeEmail") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="WorkEmail" Display="false" HeaderText="Work Email"
                                                                                SortExpression="WorkEmail" UniqueName="TemplateColumn10">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="WorkEmailLabel" runat="server" Text='<%# Eval("WorkEmail") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="../images/arrow_down.gif"
                                                                                EditText="EDIT">
                                                                                <ItemStyle BackColor="#000000" Width="10%" />
                                                                            </telerik:GridEditCommandColumn>
                                                                            <telerik:GridButtonColumn ButtonType="ImageButton" Text="DELETE" ConfirmDialogType="Classic"
                                                                                ConfirmText="DELETE STAFF MEMBER?" ImageUrl="../images/grid/Cancel.gif" CommandName="DeleteStaff">
                                                                                <ItemStyle BackColor="#000000" Width="10%" />
                                                                            </telerik:GridButtonColumn>
                                                                        </Columns>
                                                                        <EditFormSettings>
                                                                            <EditColumn UniqueName="EditCommandColumn1" UpdateText="" CancelText="CLOSE" CancelImageUrl="../images/arrow_up.gif">
                                                                            </EditColumn>
                                                                        </EditFormSettings>
                                                                    </MasterTableView></telerik:RadGrid>
                                                                 <asp:SqlDataSource ID="SqlDataSource2" runat="server">
                                                                    </asp:SqlDataSource>
                                                            </asp:Panel>
                                                        </td>
                                                        <td>
                                                        </td>
                                                        <td class="spacerW">
                                                        </td>
                                                        <td width="33%" valign="top">
                                                            <asp:Panel ID="ContactPanel" runat="server">
                                                                <div class="sub_header">
                                                                    ASSOCIATED CONTACTS<br />
                                                                    <div class="spacer">
                                                                    </div>
                                                                    <asp:DropDownList ID="ContactDropDownList" runat="server" Width="70%" AppendDataBoundItems="True"
                                                                        DataSourceID="LinqDataSource4" DataTextField="FullName" DataValueField="ContactDetailsID">
                                                                        <asp:ListItem Value="0">SELECT A CONTACT</asp:ListItem>
                                                                        <asp:ListItem Value="1">---------------------</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                    <asp:LinqDataSource ID="LinqDataSource4" runat="server" ContextTypeName="blur_MsDataContext"
                                                                        Select="new (ContactDetailsID, FullName)" TableName="tbl_ContactDetails">
                                                                    </asp:LinqDataSource>
                                                                    &#160;&#160;<asp:Button ID="AddContactButton" runat="server" Text="ADD" CssClass="TableBlackButton" /><div
                                                                        class="spacer">
                                                                    </div>
                                                                </div>
                                                                <telerik:RadGrid ID="ContactRadGrid" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource3"
                                                                    GridLines="None" ShowHeader="False">
                                                                    <MasterTableView DataSourceID="SqlDataSource3">
                                                                        <RowIndicatorColumn Visible="False">
                                                                            <HeaderStyle Width="20px" />
                                                                        </RowIndicatorColumn>
                                                                        <ExpandCollapseColumn Resizable="False" Visible="False">
                                                                            <HeaderStyle Width="20px" />
                                                                        </ExpandCollapseColumn>
                                                                        <Columns>
                                                                            <telerik:GridTemplateColumn DataField="ContactHeaderID" SortExpression="ContactHeaderID"
                                                                                UniqueName="TemplateColumn0" Display="false">
                                                                                <ItemTemplate>
                                                                                    <asp:Label runat="server" ID="contact_IDLabel" Text='<%# Eval("ContactHeaderID") %>'></asp:Label></ItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="FirstName" HeaderText="First Name" SortExpression="First Name"
                                                                                UniqueName="TemplateColumn1">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="CompanyNameLabel" runat="server" Font-Size="12px" Text='<%# Eval("FirstName") %>'></asp:Label></ItemTemplate>
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="LastName" HeaderText="Last Name" SortExpression="Last Name"
                                                                                UniqueName="TemplateColumn1b">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="ContactNameLabel" runat="server" Font-Size="12px" Text='<%# Eval("LastName") %>'></asp:Label></ItemTemplate>
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address1" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 1" SortExpression="Address1" UniqueName="TemplateColumn2">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Address1Label" runat="server" Text='<%# Eval("Address1") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address2" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 2" SortExpression="Address2" UniqueName="TemplateColumn3">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Address2Label" runat="server" Text='<%# Eval("Address2") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Address3" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Address 3" SortExpression="Address3" UniqueName="TemplateColumn4">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Address3Label" runat="server" Text='<%# Eval("Address3") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="PostCode" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Post Code" SortExpression="PostCode" UniqueName="TemplateColumn5">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="PostCodeLabel" runat="server" Text='<%# Eval("PostCode") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="City" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="City" SortExpression="City" UniqueName="TemplateColumn6">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="CityLabel" runat="server" Text='<%# Eval("City") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Country" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Country" SortExpression="Country" UniqueName="TemplateColumn7">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="CountryLabel" runat="server" Text='<%# Eval("Country") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Phone1" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Phone 1" SortExpression="Phone1" UniqueName="TemplateColumn8">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Phone1Label" runat="server" Text='<%# Eval("Phone1") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Phone2" Display="false" EditFormColumnIndex="0"
                                                                                HeaderText="Phone 2" SortExpression="Phone2" UniqueName="TemplateColumn9">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="Phone2Label" runat="server" Text='<%# Eval("Phone2") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridTemplateColumn DataField="Fax" Display="false" HeaderText="Fax" SortExpression="Fax"
                                                                                UniqueName="TemplateColumn10">
                                                                                <EditItemTemplate>
                                                                                    <asp:Label ID="FaxLabel" runat="server" Text='<%# Eval("Fax") %>'></asp:Label></EditItemTemplate>
                                                                            </telerik:GridTemplateColumn>
                                                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="../images/arrow_down.gif"
                                                                                EditText="EDIT">
                                                                                <ItemStyle BackColor="#000000" Width="10%" />
                                                                            </telerik:GridEditCommandColumn>
                                                                            <telerik:GridButtonColumn ButtonType="ImageButton" Text="DELETE" ConfirmDialogType="Classic"
                                                                                ConfirmText="DELETE CONTACT?" ImageUrl="../images/grid/Cancel.gif" CommandName="DeleteContact">
                                                                                <ItemStyle BackColor="#000000" Width="10%" />
                                                                            </telerik:GridButtonColumn>
                                                                        </Columns>
                                                                        <EditFormSettings>
                                                                            <EditColumn UniqueName="EditCommandColumn1" UpdateText="" CancelText="CLOSE" CancelImageUrl="../images/arrow_up.gif">
                                                                            </EditColumn>
                                                                            <PopUpSettings ScrollBars="None" />
                                                                        </EditFormSettings>
                                                                    </MasterTableView></telerik:RadGrid>
                                                                 <asp:SqlDataSource ID="SqlDataSource3" runat="server">
                                                                    </asp:SqlDataSource>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </telerik:RadPageView>
                                            <telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">
                                                <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
                                                    <Windows>
                                                        <telerik:RadWindow ID="AdvancedForm" runat="server" Title="BMS - Scheduler Advanced Form"
                                                            ReloadOnShow="true" Behaviors="Close" OnClientClose="refreshScheduler" VisibleStatusbar="false"
                                                            Width="500px" Modal="true">
                                                        </telerik:RadWindow>
                                                    </Windows>
                                                </telerik:RadWindowManager>
                                                <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndDate" DataKeyField="ScheduleID"
                                                    DataSourceID="SqlDataSource4" DataStartField="StartDate" DataSubjectField="Subject"
                                                    GroupBy="Staff" StartInsertingInAdvancedForm="True"
                                                    Culture="English (United Kingdom)" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
                                                    SelectedView="DayView" WorkDayEndTime="17:30:00" WorkDayStartTime="08:30:00"
                                                    DataRecurrenceField="RecurrenceRule"
                                                    DataRecurrenceParentKeyField="RecurrenceParentID">
                                                    <ResourceTypes>
                                                        <telerik:ResourceType DataSourceID="StaffDataSource" ForeignKeyField="StaffHeaderID"
                                                            KeyField="StaffHeaderID" Name="Staff" TextField="FullName" />
                                                    </ResourceTypes>
                                                    <DayView WorkDayEndTime="17:30:00" WorkDayStartTime="08:30:00" />
                                                    <WeekView WorkDayEndTime="17:30:00" WorkDayStartTime="08:30:00" />
                                                </telerik:RadScheduler>
                                                <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:blur_MSConnectionString %>"
                                                    DeleteCommand="DELETE FROM [tbl_Schedule] WHERE [ScheduleID] = @ScheduleID"
                                                    InsertCommand="INSERT INTO [tbl_Schedule] ([ProjectID], [StaffHeaderID], [StartDate], [EndDate], [Description], [Subject], [RecurrenceRule], [RecurrenceParentID]) VALUES (@ProjectID, @StaffHeaderID, @StartDate, @EndDate, @Description, @Subject, @RecurrenceRule, @RecurrenceParentID)"
                                                    SelectCommand="SELECT * FROM [tbl_Schedule] WHERE ([ProjectID] = @ProjectID)"
                                                    UpdateCommand="UPDATE [tbl_Schedule] SET [ProjectID] = @ProjectID, [StaffHeaderID] = @StaffHeaderID, [StartDate] = @StartDate, [EndDate] = @EndDate, [Description] = @Description, [Subject] = @Subject, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID WHERE [ScheduleID] = @ScheduleID">
                                                    <SelectParameters>
                                                        <asp:ControlParameter Name="ProjectID" ControlID="ProjectsDropDownList" Type="Int32"
                                                            PropertyName="SelectedValue" />
                                                    </SelectParameters>
                                                    <DeleteParameters>
                                                        <asp:Parameter Name="ScheduleID" Type="Int32" />
                                                    </DeleteParameters>
                                                    <UpdateParameters>
                                                        <asp:ControlParameter Name="ProjectID" ControlID="ProjectsDropDownList" Type="Int32"
                                                            PropertyName="SelectedValue" />
                                                        <asp:Parameter Name="StaffHeaderID" Type="Int32" />
                                                        <asp:Parameter Name="StartDate" Type="DateTime" />
                                                        <asp:Parameter Name="EndDate" Type="DateTime" />
                                                        <asp:Parameter Name="Description" Type="String" />
                                                        <asp:Parameter Name="Subject" Type="String" />
                                                        <asp:Parameter Name="ScheduleID" Type="Int32" />
                                                        <asp:Parameter Name="RecurrenceRule" Type="String" />
                                                        <asp:Parameter Name="RecurrenceParentID" Type="Int32" />
                                                    </UpdateParameters>
                                                    <InsertParameters>
                                                        <asp:ControlParameter Name="ProjectID" ControlID="ProjectsDropDownList" Type="Int32"
                                                            PropertyName="SelectedValue" />
                                                        <asp:Parameter Name="StaffHeaderID" Type="Int32" />
                                                        <asp:Parameter Name="StartDate" Type="DateTime" />
                                                        <asp:Parameter Name="EndDate" Type="DateTime" />
                                                        <asp:Parameter Name="Description" Type="String" />
                                                        <asp:Parameter Name="Subject" Type="String" />
                                                        <asp:Parameter Name="RecurrenceRule" Type="String" />
                                                        <asp:Parameter Name="RecurrenceParentID" Type="Int32" />
                                                    </InsertParameters>
                                                </asp:SqlDataSource>
                                                <asp:SqlDataSource runat="server" ID="StaffDataSource" ConnectionString='<%$ ConnectionStrings:blur_MSConnectionString%>'>
                                                </asp:SqlDataSource>
                                            </telerik:RadPageView>
                                        </telerik:RadMultiPage>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Content>

  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 05 Jun 2008 Link to this post

    Hello Jean-Philippe,

    We tried to reproduce the problem locally, but without success. We will keep investigating and if we find something of interest we will let you know.


    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top