RadGrid namespace is undefined

6 posts, 0 answers
  1. Padmaja
    Padmaja avatar
    12 posts
    Member since:
    Dec 2008

    Posted 05 Jul 2010 Link to this post

    Hi telerik Team,

    We are using the old RadControls Q42006 version and we are planning to migrate the telerik controls to 2010 version. Before migrate i download the new controls 2010 version and i applied for my application. After i applied new telerik.web.ui, ASP NET chart images are not displaying in the page and also am using telerik grid old version in the same page. am always got the javascript error "RadGrid namespace" is undefined.

    Here i post the my aspx page coding.
    Please advise me after i apply the new telerik controls why i can't use telerik grid in between <Asp:view></Asp:View> and also why I cant able to see my chart images. Is there any changes I need to do.

    Can  i use RadAjax Manager is 2010 version and RadGrid is my old version. Because in master page am using Rad Ajax Manager 2010 version. The below child page am using old version Rad grids. And I so wonder why I cant see ASPNET chart images.

    If i apply the new controls, did i need to change my whole application to new controls?

    Please reply me ASAP.

    ASPX Code :

    <%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ActivationDetails.aspx.cs"
        Inherits="RR_Web.ActivationDetails" Title="Activation Details" %>

    <%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>

    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="5">
    <tr>
        <td rowspan="3" width="20%" valign="top" class="detsTblBg">
            <table width="100%" cellpadding="4">
                <tr><td><asp:LinkButton ID="lnkGeneral" runat="server" OnClick="lnkGeneral_Click" skinID="lnkBtn">General Information</asp:LinkButton></td> </tr>
                <tr><td><asp:LinkButton ID="lnkActResult" runat="server" OnClick="lnkActResult_Click" skinID="lnkBtn">Activation Results</asp:LinkButton></td></tr>
                <tr><td><asp:LinkButton ID="lnkSMSDetails" runat="server" OnClick="lnkSMSDetails_Click" skinID="lnkBtn">SMS Details</asp:LinkButton></td></tr>
                <tr><td><asp:LinkButton ID="lnkVoiceDetails" runat="server" OnClick="lnkVoiceDetails_Click" skinID="lnkBtn">Voice Details</asp:LinkButton></td></tr>
            </table>
        </td>
        <td width="80%">
            <asp:MultiView ID="multiViewActDetails" runat="server" ActiveViewIndex="0">
                <asp:View ID="View1" runat="server">
                    <table cellpadding="3">
                        <tr><td> <asp:Label runat="server" Text="General Information" SkinID="sideHead"></asp:Label> </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Font-Bold="true" Text="Activation ID"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblID" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="lbl2" Text="Activation Name" runat="server" Font-Bold="true"></asp:Label></td>
                            <td><asp:Label ID="lblActName" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="Label5" Text="Created By" runat="server" Font-Bold="true"></asp:Label></td>
                            <td><asp:Label ID="lblCreatedBy" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="Label12" Text="Started" runat="server" Font-Bold="true"></asp:Label></td>
                            <td><asp:Label ID="lblStarted" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="lblExpiringOn" Text="Expiring On" runat="server"
                                    Font-Bold="true"></asp:Label>
                                <asp:Label ID="lblCompletedOn" runat="server" Font-Bold="true" Text="Completed"></asp:Label>
                            </td>
                            <td><asp:Label ID="lblExpireComplete" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="lbl2a" Text="Status" Font-Bold="true" runat="server"></asp:Label>
                            </td>
                            <td><asp:Label ID="lblStatus" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="Label3" Text="SMS Text" runat="server" Font-Bold="true"></asp:Label></td>
                            <td><asp:Label ID="lblSMSText" runat="server"></asp:Label></td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="Label6" Text="Announcement File" runat="server" Font-Bold="true"></asp:Label></td>
                            <td>
                                <asp:HyperLink ID="lblVoiceMsg" runat="server" Text="Play"></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="Label13" Text="Acknowledgement File   " runat="server"
                                    Font-Bold="true"></asp:Label></td>
                            <td><asp:HyperLink runat="server" ID="lblAckMsg" Text="Play"></asp:HyperLink></td>
                        </tr>
                    </table>
                </asp:View>
               
               
               
                <asp:View ID="View2" runat="server">
                    <table cellpadding="3">
                        <tr>
                            <td><asp:Label ID="Label14" runat="server" Text="Activation Results" SkinID="sideHead"></asp:Label></td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblNumRecp" runat="server" Text="0" Visible="false"></asp:Label>
                                <asp:Label ID="lblNumAck" runat="server" Text="0" Visible="false"></asp:Label>
                                <asp:Label ID="lblPctAck" runat="server" Text="0" Visible="false"></asp:Label>
                                <asp:Label ID="lblNumNonResp" runat="server" Text="0" Visible="false"></asp:Label>
                                <asp:Label ID="lblPctNonResp" runat="server" Text="0" Visible="false"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td><asp:Label ID="Label11" Text="Total Call Time" runat="server" Font-Bold="true"></asp:Label> &nbsp; &nbsp;
                                <asp:Label ID="lblTotalCallTime" runat="server" Text="0"></asp:Label>sec</td>
                        </tr>                                    
                        <tr>
                            <td colspan="2" align="left">
                                <table cellpadding ="4">
                                <tr>
                                <td align="left" valign="top">
                                        <asp:Chart ID="Chart1" runat="server" SkinID="chartSkin">
                                                <Series>
                                                    <asp:Series Name="Series1">
                                                    </asp:Series>
                                                </Series>
                                                <ChartAreas>
                                                    <asp:ChartArea Name="ChartArea1">
                                                    </asp:ChartArea>
                                                </ChartAreas>
                                         </asp:Chart>
                                </td>                           
                                <td align="left" valign="top">
                                        <asp:Chart ID="Chart2" runat="server" SkinID="chartSkin" Width="500px">
                                                <Series>
                                                    <asp:Series Name="Series1">
                                                    </asp:Series>
                                                </Series>
                                                <ChartAreas>
                                                    <asp:ChartArea Name="ChartArea1">
                                                    </asp:ChartArea>
                                                </ChartAreas>
                                         </asp:Chart>
                                </td>
                                </tr>
                                </table>
                            </td>
                        </tr>                  
                        <tr>
                        <td align="left" valign="top">
                                        <asp:Chart ID="Chart3" runat="server" SkinID="chartSkin" Width="500px" Height="400px">
                                                <Series>
                                                    <asp:Series Name="Series1">
                                                    </asp:Series>                                              
                                                </Series>
                                                <ChartAreas>
                                                    <asp:ChartArea Name="ChartArea1">
                                                    </asp:ChartArea>
                                                </ChartAreas>
                                         </asp:Chart>
                                        
                                         <asp:Label ID="lblNumSMS_Att1" runat="server" Text="0" Visible="false"></asp:Label>
                                         <asp:Label ID="lblNumSMS_Att2" runat="server" Text="0" Visible="false"></asp:Label>
                                         <asp:Label ID="lblNumSMS_Att3" runat="server" Text="0" Visible="false"></asp:Label>
                                         <asp:Label ID="lblNumSMS_Ack" runat="server" Text="0" Visible="false"></asp:Label>
                                         <asp:Label ID="lblNumIVR_Att1" runat="server" Text="0" Visible="false"></asp:Label>
                                         <asp:Label ID="lblNumIVR_Att2" runat="server" Text="0" Visible="false"></asp:Label>
                                         <asp:Label ID="lblNumIVR_Att3" runat="server" Text="0" Visible="false"></asp:Label>
                                         <asp:Label ID="lblNumIVR_Ack" runat="server" Text="0" Visible="false"></asp:Label>
                        </td>
                        </tr>
                    </table>
                </asp:View>
               
               
               
                <asp:View ID="View3" runat="server">
                    <table cellpadding="3">
                        <tr>
                            <td><asp:Label ID="Label15" runat="server" Text="SMS Details" SkinID="sideHead"></asp:Label></td>
                        </tr>
                        <tr height="10px"> 
                            <td>
                                <b>SMS Attempt 1</b></td>
                        </tr>
                        <tr> <td>
                            <radG:RadGrid ID="gridDetailsSMS_Att1" runat="server"
                                AllowFilteringByColumn="false" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="true" DataSourceID="RR_SMSAtt1" Font-Size="Medium"
                                GridLines="None" OnItemDataBound="RadGrid_DataBound" SkinID="myGrid">
                                <MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
                                    DataSourceID="RR_SMSAtt1">
                                </MasterTableView>
                                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                            </radG:RadGrid>
                            </td> </tr>
                        <tr>
                            <td>
                                <b>SMS Attempt 2</b></td>
                        </tr>
                        <tr> 
                            <td>
                                <radG:RadGrid ID="gridDetailsSMS_Att2" runat="server"
                                    AllowFilteringByColumn="false" AllowPaging="True" AllowSorting="True"
                                    AutoGenerateColumns="true" DataSourceID="RR_SMSAtt2" Font-Size="Medium"
                                    GridLines="None" OnItemDataBound="RadGrid_DataBound" SkinID="myGrid">
                                    <MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
                                        DataSourceID="RR_SMSAtt2">
                                    </MasterTableView>
                                    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                                </radG:RadGrid>
                            </td>
                        </tr>
                        <tr> <td> <b>SMS Attempt 3</b></td> </tr>
                        <tr>
                            <td valign="top">
                                <radG:RadGrid ID="gridDetailsSMS_Att3" runat="server"
                                    AllowFilteringByColumn="false" SkinID="myGrid"
                                    AllowPaging="True" AllowSorting="True" Font-Size="Medium"
                                    GridLines="None" AutoGenerateColumns="true" DataSourceID="RR_SMSAtt3"
                                    OnItemDataBound="RadGrid_DataBound">
                                    <MasterTableView CommandItemDisplay="None" AutoGenerateColumns="true"
                                        DataSourceID="RR_SMSAtt3">                                  
                                    </MasterTableView>
                                    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />                               
                                </radG:RadGrid>
                            </td>
                        </tr>
                         <tr> 
                             <td>
                                 <b>SMS Acknowledgement</b></td>
                        </tr>
                        <tr> <td>
                            <radG:RadGrid ID="gridDetailsSMSAck" runat="server"
                                AllowFilteringByColumn="false" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="true" DataSourceID="RR_SMSAck" Font-Size="Medium"
                                GridLines="None" SkinID="myGrid">
                                <MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
                                    DataSourceID="RR_SMSAck">
                                </MasterTableView>
                                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                            </radG:RadGrid>
                            </td> </tr>
                    </table>
                </asp:View>
               
               
               
                <asp:View ID="View4" runat="server">
                    <table cellpadding="3">
                        <tr>  <td><asp:Label ID="Label16" runat="server" Text="Voice Details" SkinID="sideHead"></asp:Label></td>
                        <tr> 
                            <td>
                                <b>IVR Attempt 1</b>
                            </td>
                            </tr>
                        <tr> <td>
                            <radG:RadGrid ID="gridIVRAtt1" runat="server" AllowFilteringByColumn="false"
                                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true"
                                DataSourceID="RR_IVRAtt1" Font-Size="Medium" GridLines="None"
                                OnItemDataBound="RadGrid_DataBound" SkinID="myGrid">
                                <MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
                                    DataSourceID="RR_IVRAtt1">
                                </MasterTableView>
                                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                            </radG:RadGrid>
                            </td> </tr>
                        <tr>
                            <td>
                                <b>IVR Attempt 2</b>
                            </td>
                        </tr>
                        <tr> 
                            <td valign="top">
                                <radG:RadGrid ID="gridIVRAtt2" runat="server" AllowFilteringByColumn="false"
                                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true"
                                    DataSourceID="RR_IVRAtt2" Font-Size="Medium" GridLines="None"
                                    OnItemDataBound="RadGrid_DataBound" SkinID="myGrid" Width="600px">
                                    <MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
                                        DataSourceID="RR_IVRAtt2">
                                    </MasterTableView>
                                    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                                </radG:RadGrid>
                            </td>
                            </tr>
                        <tr> <td> <b>IVR Attempt 3</b> </td> </tr>                   
                        <tr>
                            <td valign="top">
                                <radG:RadGrid ID="gridIVRAtt3" runat="server" AllowFilteringByColumn="false"
                                    AllowPaging="True" SkinID="myGrid"
                                    AllowSorting="True" Font-Size="Medium" Width="600px" GridLines="None"
                                    AutoGenerateColumns="true" DataSourceID="RR_IVRAtt3"
                                    OnItemDataBound="RadGrid_DataBound">
                                    <MasterTableView CommandItemDisplay="None" AutoGenerateColumns="true"
                                        DataSourceID="RR_IVRAtt3">
                                    </MasterTableView>
                                    <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
                                </radG:RadGrid>
                            </td>
                        </tr>
                        <tr> 
                            <td>
                                <b>IVR Acknowledgement</b>
                            </td>
                            </tr>
                        <tr> <td valign="top">
                            <radG:RadGrid ID="gridIVRAck" runat="server" AllowFilteringByColumn="false"
                                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true"
                                DataSourceID="RR_IVRAck" Font-Size="Medium" GridLines="None" SkinID="myGrid"
                                Width="600px">
                                <MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
                                    DataSourceID="RR_IVRAck">
                                </MasterTableView>
                                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                            </radG:RadGrid>
                            </td> </tr>
                        </table>
                </asp:View>
            </asp:MultiView>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnBack" Text="Back" runat="server" CausesValidation="false" PostBackUrl="~/Activations.aspx" />
            <asp:Button ID="btnRefresh" Text="Refresh" Visible="true" runat="server" OnClick="btnRefresh_Click" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lblError" runat="server" ForeColor="Red" Text="There is an error. Please try again."
                Visible="False" EnableViewState="false"></asp:Label>
        </td>
    </tr>
    </table>

        <asp:SqlDataSource ID="RR_SMSAtt1" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
            SelectCommand="SELECT RecipientName AS [Recipient Name], FirstSMSNumber AS [SMS Number], FirstSMSStartTime AS [Start Time], FirstSMSQueueTime AS [Queue Time], FirstSMSStatus AS [Status] FROM RR_tblActivationDetails WHERE FirstSMSStartTime IS NOT NULL AND ActivationID=@ActivationID"
            OldValuesParameterFormatString="original_{0}" OnSelected="RR_SMSAtt1_Selected">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="RR_SMSAtt2" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
            SelectCommand="SELECT RecipientName AS [Recipient Name], SecondSMSNumber AS [SMS Number], SecondSMSStartTime AS [Start Time], SecondSMSQueueTime AS [Queue Time], SecondSMSStatus AS [Status] FROM RR_tblActivationDetails WHERE SecondSMSStartTime IS NOT NULL AND ActivationID=@ActivationID"
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="RR_SMSAtt3" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
            SelectCommand="SELECT RecipientName AS [Recipient Name], ThirdSMSNumber AS [SMS Number], ThirdSMSStartTime AS [Start Time], ThirdSMSQueueTime AS [Queue Time], ThirdSMSStatus AS [Status] FROM RR_tblActivationDetails WHERE ThirdSMSStartTime IS NOT NULL AND ActivationID=@ActivationID"
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource OnSelected="RR_SMSAck_Selected" ID="RR_SMSAck" runat="server"
            ConnectionString="<%$ ConnectionStrings:RRSqlServer %>" SelectCommand="SELECT RecipientName AS [Recipient Name], '' AS [SMS Number], AcknowledgeSMS as [Replied Text], AcknowledgeTime AS [Acknowledge Time] FROM RR_tblActivationDetails WHERE AcknowledgeVia='S' AND ActivationID=@ActivationID">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource OnSelected="RR_IVRAtt1_Selected" ID="RR_IVRAtt1" runat="server"
            ConnectionString="<%$ ConnectionStrings:RRSqlServer %>" SelectCommand="SELECT RecipientName AS [Recipient Name], FirstIVRNumber AS [Voice Number], FirstIVRStartTime AS [Queued], FirstIVRCallTime AS [Called], FirstIVRCompleteTime AS [Completed], FirstIVRStatus AS [Status], FirstIVRTotalRetries AS [Total Retries] FROM RR_tblActivationDetails WHERE FirstIVRStartTime IS NOT NULL AND ActivationID=@ActivationID">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="RR_IVRAtt2" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
            SelectCommand="SELECT RecipientName AS [Recipient Name], SecondIVRNumber AS [Voice Number], SecondIVRStartTime AS [Queued], SecondIVRCallTime AS [Called], SecondIVRCompleteTime AS [Completed], SecondIVRStatus AS [Status], SecondIVRTotalRetries AS [Total Retries] FROM RR_tblActivationDetails WHERE SecondIVRStartTime IS NOT NULL AND ActivationID=@ActivationID">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="RR_IVRAtt3" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
            SelectCommand="SELECT RecipientName AS [Recipient Name], ThirdIVRNumber AS [Voice Number], ThirdIVRStartTime AS [Queued], ThirdIVRCallTime AS [Called], ThirdIVRCompleteTime AS [Completed], ThirdIVRStatus AS [Status], ThirdIVRTotalRetries AS [Total Retries] FROM RR_tblActivationDetails WHERE ThirdIVRStartTime IS NOT NULL AND ActivationID=@ActivationID">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource OnSelected="RR_IVRAck_Selected" ID="RR_IVRAck" runat="server"
            ConnectionString="<%$ ConnectionStrings:RRSqlServer %>" SelectCommand="SELECT RecipientName AS [Recipient Name], AcknowledgeNumber AS [Voice Number], AcknowledgeIVR as [Key Pressed], AcknowledgeTime AS [Acknowledge Time] FROM RR_tblActivationDetails WHERE AcknowledgeVia='V' AND ActivationID=@ActivationID">
            <SelectParameters>
                <asp:Parameter Type="String" Name="ActivationID" />
            </SelectParameters>
        </asp:SqlDataSource>
    </asp:Content>

  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 06 Jul 2010 Link to this post

    Hi Padmaja,

    The ASP.NET AJAX RAD CONTROLS are defined in the Telerik.Web.UI namespace which is different for the old classic version of the controls. Your page directive should be as follows:

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

    Hope it helps.

    Best wishes,
    Tsvetoslav
    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. Padmaja
    Padmaja avatar
    12 posts
    Member since:
    Dec 2008

    Posted 06 Jul 2010 Link to this post

    Hi Telerik Team,

    I already added the tag. and tried still same error I got.
  4. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 08 Jul 2010 Link to this post

    Hi Padmaja,

    What assemblies are you referencing in your project? Could you also paste your modified aspx mark-up (please, use the code formatter tool of the ticket editor to make it readable)?

    Regards,
    Tsvetoslav
    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
  5. Padmaja
    Padmaja avatar
    12 posts
    Member since:
    Dec 2008

    Posted 09 Jul 2010 Link to this post

    Hi Telerik support,

    I solve my issue. now its working fine.
  6. Roshan
    Roshan avatar
    1 posts
    Member since:
    Sep 2018

    Posted 01 Sep 2018 in reply to Tsvetoslav Link to this post

    Whereto get the file from
Back to Top