ListView Default Border

4 posts, 1 answers
  1. Allan
    Allan avatar
    121 posts
    Member since:
    Jun 2008

    Posted 31 Oct 2012 Link to this post

    By default there is a black bounding border one pixel wide around the ListView. Setting BorderColor, Style, and/or Width has no effect. Is there a way to remove the border?
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 01 Nov 2012 Link to this post

    Hi Allan,

    I suppose you want to remove the default border, which browsers apply to <fieldset> elements. Try styling the fieldset as follows to remove the default border.

    <telerik:RadListView ID="RadListView1" runat="server" ItemPlaceholderID="PlaceHolder1" ....>
            <fieldset style="border: none;" >
                <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>

    Hope this helps.

  3. Jacob
    Jacob avatar
    2 posts
    Member since:
    Jan 2013

    Posted 22 Jan 2013 Link to this post


    I have tryed you solution but i cant get it to work. It still show the border around the listview?

    Hope you are able to help


    <telerik:RadListView runat="server" ID="ActivityListView" AllowPaging="False" DataKeyNames="Id" BorderWidth="0px" BorderStyle="None">
                                                <fieldset style="border: none;">
                                                    <div class="infotext" style="border: none;">
                                                         <asp:Label ID="DateLabel" CssClass="act_date" runat="server" Text='<%# Eval("ActivityDate", "{0:dd MMMM yyyy}") %>'></asp:Label>
                                                         <asp:Label ID="HeaderTextLabel" CssClass="act_header" runat="server" Text='<%# Eval("HeaderText") %>'></asp:Label>
                                                        <br />
                                                    <div class="RadListView RadListView_<%# Container.Skin %>">
                                                        <div class="infotext">
                                                            Ingen aktiviteter.</div>
                                                    <div class="RadListView RadListView_<%# Container.Skin %>">
                                                        <div id="itemPlaceholder" runat="server">
  4. Eyup
    Eyup avatar
    3590 posts

    Posted 25 Jan 2013 Link to this post

    Hello Jacob,

    Please try to apply the styling to the LayoutTemplate instead and let us know about the result.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top