Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

New to ListView, need guidance on formatting options

$
0
0

I've been spoiled by GridView!

I have need for something simpler, just basic 2-column lists, no paging, no complex templating, just a list with scrolling as needed.

The attached graphic shows an approximation of what I need. I manipulated height and width settings and was partially successful in creating an outline, but as you can see, instead of scrollbars I get overflow.

 I am thinking that maybe I need to embed the ListView control inside a panel or other object to force scrollbars, but then presume the headings themselves will also scroll out of view.

 Question 1) is there a better RAD AJAX control?

 Question 2) why to the height and width settings have very little effect on this control, when they are spectacular with GridView? 

 

      <telerik:RadListViewID="RadListView1"runat="server"DataSourceID="publication_date_summary"BorderColor="#3399FF"BorderStyle="Solid"BorderWidth="2px"Height="200px"Skin="Metro"Width="300px"><LayoutTemplate>
        <divclass="RadListView RadListView_Metro"style="max-width:140px; max-height:300px;">
            <tablecellspacing="0"">
                <thead>
                    <trclass="rlvHeader">
                        <thstyle="width:100px;">Decade</th>
                        <thstyle="width:40px;">Songs</th>
                    </tr>
                </thead>
                <tbody>
                    <trid="itemPlaceholder"runat="server">
                    </tr>
                </tbody>
            </table>
        </div>
</LayoutTemplate>
        <ItemTemplate>
            <trclass="rlvI">
                <td>
<%--                    <asp:LabelID="NameLabel"runat="server"Text='<%# Eval("Name") %>' />--%>
                                   <ahref='selector.aspx?class_id=5&filter=decade&decade=<%# Eval("pub_date")%>' target="_parent"><%# Eval("pub_date") %></a>
                </td>
                <td>
                    <asp:LabelID="CountOfIDLabel"runat="server"Text='<%# Eval("songs") %>' />
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            <divclass="RadListView RadListView_MetroTouch">
                <divclass="rlvEmpty">
                    There are no items to be displayed.</div>
            </div>
        </EmptyDataTemplate>
 
    </telerik:RadListView>

 

 


 

Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images