MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

List - Alternating Style ?  (Mono Support )

27377 put(a) pogledan, 3 odgovor(a) 13.8.2011. 16:38:08Kreirao(la) shawndg

Povezane teme

shawndg

shawndg

13.8.2011. 16:38:55
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.. ?
Ovaj sadržaj još nije ocijenjen. 
1871 Reputacija 252 Ukupno objava
khorvat

khorvat

13.8.2011. 19:25:47
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
denis

denis

13.8.2011. 21:22:01
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.

Ovaj sadržaj još nije ocijenjen. 
7207 Reputacija 956 Ukupno objava