This is a migrated thread and some comments may be shown as answers.

RadPanelBar inside content page designer issue.

2 Answers 61 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
PureCode
Top achievements
Rank 2
PureCode asked on 13 Aug 2008, 06:07 PM
Hi,

RadPanelBar is doing something rather odd inside my content page.

RadPanelBar rendering error inside content page.

As can be seen in the image, the RadTextBox isn't having any issues. I also tried placing a RadPanelBar in another content page that holds multiple RadGrids and there too it produces the issue as seen in the image.

Any idea what is going on? The error message makes no sense at all (cannot cast RadPanelItemCollection to RadPanelItemCollection, eh... ok..).

Here's the HTML script of the content page:

<%@ Page Language="C#" MasterPageFile="~/Intranet/Intranet.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="EnterpriseDemo.Intranet.Default" Title="Enterprise Demo (Intranet)" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<asp:Content ID="IntranetDefaultContent" ContentPlaceHolderID="IntranetWorkAreaContentPlaceHolder" runat="server"
    <asp:LinqDataSource ID="NewsLinqDataSource" runat="server"  
        ContextTypeName="EnterpriseDemo.Intranet.Database.IntranetDataContext"  
        EnableDelete="True" EnableInsert="True" EnableUpdate="True" OrderBy="Date"  
        TableName="News"
    </asp:LinqDataSource> 
    <telerik:RadPanelBar ID="IntranetNewsRadPanelBar" Runat="server" Skin="Outlook" Width="100%"
        <CollapseAnimation Type="None" Duration="100"></CollapseAnimation> 
        <Items> 
            <telerik:RadPanelItem runat="server" Text="Company News" Selected="True" Expanded="True"
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="News Item 1"
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem runat="server" Text="Department News"
            </telerik:RadPanelItem> 
        </Items> 
        <ExpandAnimation Type="None" Duration="100"></ExpandAnimation> 
    </telerik:RadPanelBar> 
    <br /> 
    <telerik:RadTextBox ID="RadTextBox1" Runat="server" Skin="Outlook"
    </telerik:RadTextBox> 
</asp:Content> 

As far as I can tell, there are no issues with that HTML.

Thanks,

Mike



2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 Aug 2008, 05:29 AM
Hello PureCode,

This error occurs due to a visual studio glitch. The IDE loads the Telerik.Web.UI.dll twice if you updated it while in design mode. Then the type RadPanelItemCollection is defined in two assemblies hence the error. Usually restarting Visual Studio helps in this case.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
PureCode
Top achievements
Rank 2
answered on 14 Aug 2008, 03:05 PM
Hi,

It always does it within my application and i haven't updated the Telerik DLLs since the release of Q2 of the ASP.NET AJAX suite of controls.

It's no showstopper, but a little annoying since it makes it bit hard to work with.

Regards,

Mike
Tags
PanelBar
Asked by
PureCode
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
PureCode
Top achievements
Rank 2
Share this question
or