Mono Support List - Alternating Style ? 

Viewed 27152 time(s), 3 post(s), 8/13/2011 4:38:08 PM - by shawndg
8/13/2011 4:38:55 PM
1871 Reputation 252 Total posts

In the List parts..

Is there any css style tags or way to alt rows colors ?

Im trying to make the colors of each row alternate..

I edited the list template but its just one row.. ?

1
8/13/2011 7:25:47 PM
15993 Reputation 2214 Total posts

Hi,

  we have implemented alternating style functionality in new version of MonoX that we hope to release soon. As a workaround I'll try to provide you with one till Thursday.

Regards

2
8/13/2011 9:22:01 PM
7207 Reputation 956 Total posts

Hey Shawn,
Actually there is a quick solution that you can use right away. The "repeating" part of parts such as ListModule is actually a standard ASP.NET ListView. You can always access all of the underlying functionality using something like this:

<MonoX:ListModule runat="server" ID="list1" ListName="Test list">
    <TemplatedControl>
        <LayoutTemplate>
            <asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
              
        </LayoutTemplate>
        <ItemTemplate>
            This is my item template. <a href='<%# Eval("ItemUrl") %>'><%# Eval("ItemTitle") %></a><br /><%# Eval("ItemContent") %>
        </ItemTemplate>
        <AlternatingItemTemplate>
            This is my alternatingitem template. <a href='<%# Eval("ItemUrl") %>'><%# Eval("ItemTitle") %></a><br /><%# Eval("ItemContent") %>
        </AlternatingItemTemplate>
    </TemplatedControl>
</MonoX:ListModule>

You will probably want to delete the contents of your template file for this control, as it still works, although you are using the standard ASP.NET data binding syntax.

3
This is a demo site for MonoX. Please visit Mono Software for more info.