473,383 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

issue with DataList RepeatColumns property

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
Oct 17 '08 #1
0 1024

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Gav | last post by:
Hi All, I have created a datalist using the repeatcolumns property to create multiple columns. I have tried to keep everythings width to 100% so that if the window is resized it still looks...
6
by: Thanh | last post by:
I created an ASP.NET project and dropped a DataList on the web form. I then wrote a simple class to return data: namespace Playing { public class PositionData { private string name; private...
1
by: Lynn | last post by:
Hello, Sorry for the double post...I meant for this to go into this forum. I have built a datalist programatically using an article from MSDN...the article was written specifically for the...
3
by: GD | last post by:
I'm using a DataList and a Repeater (nested in the DataList) to display a list of "Chapters" and "Documents" within the Chapters. <asp:DataList ID="dlChapter" Runat="server" RepeatColumns="2"...
1
by: bubba ho-tep | last post by:
Hello, When you have a datalist repeating horizontally, is it possible to set the repeatcolumns dynamically based on the user's window size? EG. If the user's window is wide enough for 3...
2
by: robnhood00 | last post by:
I have a datalist that repeats horizontally by 3. I'm trying to create a header that will be dynamically displayed based on criteria. Let's say we have 3 groups (A, B, C). I want it to do this:...
1
by: David Lozzi | last post by:
Howdy, I have a datalist which is displaying a list of categories and their associated sub categories in secondary datalists. Works great in a single column. Unfortunaly when i switch it to...
5
by: .Net Sports | last post by:
I'm having problems trying to get a record out of a resultset when working with a Datalist control. <%# Container.DataItem( "myfield" )%is how I am displaying the field , but when trying to do an...
4
by: .Net Sports | last post by:
I need to dynamically assign a datalist attribute upon a helper function receiving data from a querystring. If a user picks a certain region, i need the datalist to display its back color, or any...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.