issue with DataList RepeatColumns property

G

graphicsxp

Hi,

I have the following datalist which basically displays dropdownList
in 3 columns.

<asp:DataList ID="dlFilters"
runat="server"
RepeatDirection="Vertical"
RepeatLayout="Flow"
RepeatColumns="3"
CellPadding="10"
CellSpacing="10"
OnItemDataBound="dlFilters_OnItemDataBound"
Width="100%" Height="100%">
<ItemTemplate>
<asp:DropDownList ID="ddFilter" runat="server"
CssClass="FiltersBox" Width="150px"></asp:DropDownList>
</ItemTemplate>
</asp:DataList>



It works fine when my page is loaded, I got my 3 columns :)

However I have a little javascript function which hides/shows these
dropdowns. As soon as I show the dropdowns again, the layout is lost,
and they are all displayed in a single column :(

I don't think the javascript is the issue there but here's the code
(I'm using jQuery) :

$("#showFilters").bind("click", function(e) {

$(":input", "#divFilters").css("display", "block");

});
$("#hideFilters").bind("click", function(e) {

$(":input", "#divFilters").css("display", "none");

});

$("#showFilters").bind("click", function(e) {

$(":input", "#divFilters").css("display", "block");

});
$("#hideFilters").bind("click", function(e) {

$(":input", "#divFilters").css("display", "none");

});

Anyone has experienced this ?



Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top