I have asp:table and we are displaying lables and checkboxList (in two two TableRows one column for lable and the other one checkbox) for users to check the checkboxes as appropirate and finally click on the Save button to save the selected checkbox options.
Now the issue is if there are more checkboxes and lables then the users can't find the Save button which is buried under the top and bottom boundaries of the screen. So I am trying to find a way to display the asp:table or asp:tablerow in multiple columns
instead of just two columns. That way the entire data adjusted into multiple columns and rows and when the screen opens it looks like a square asp:table then just a long vertical table where users can't see all the data and the Save button is hidden/not visible.
Is there an option in the asp:table for me to simply setup to create more columns?
jbo, I am sorry that I put GridView. But we are using asp:table to display the data. Sorry for the miscommunication. Could you please read it once agian.
I think it is something to do with RepeatColumns property in the CheckBoxList. If I set it to say RepeatColumns="4" then it would make 4 columns. I am testing and will update it here if all looks good.
Oh, nope you are correct. You had table in your original post. Sorry about that. I will try to look more into this over the weekend. Just out of curiosity though, why are you using an asp table rather than a listview or gridview?
You could wrap the table in a div. Set the height of the div and set overflow:auto. That should put the scroll-bar on the div, and keep your save button always on screen.
Superguppie.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
lusty_learne...
Participant
782 Points
390 Posts
asp:table checkboxes display - need help
Jun 08, 2012 06:03 PM|LINK
Hi,
I have asp:table and we are displaying lables and checkboxList (in two two TableRows one column for lable and the other one checkbox) for users to check the checkboxes as appropirate and finally click on the Save button to save the selected checkbox options.
Now the issue is if there are more checkboxes and lables then the users can't find the Save button which is buried under the top and bottom boundaries of the screen. So I am trying to find a way to display the asp:table or asp:tablerow in multiple columns instead of just two columns. That way the entire data adjusted into multiple columns and rows and when the screen opens it looks like a square asp:table then just a long vertical table where users can't see all the data and the Save button is hidden/not visible.
Is there an option in the asp:table for me to simply setup to create more columns?
Please help.
Thanks,
L
jbo796
Member
23 Points
25 Posts
Re: asp:table checkboxes display - need help
Jun 08, 2012 06:14 PM|LINK
There sure is!
<asp:GridView ID="GridView1" runat="server"> <Columns> <asp:TemplateField> <ItemTemplate> checkboxes <asp:CheckBox ID="CheckBox2" runat="server" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> more checkboxes <asp:CheckBox ID="CheckBox3" runat="server" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> EVEN MORE checkboxes! <asp:CheckBox ID="CheckBox1" runat="server" /> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>jbo796
Member
23 Points
25 Posts
Re: asp:table checkboxes display - need help
Jun 08, 2012 06:20 PM|LINK
Sorry, I should clarify on my last post
inside of <Columns></Columns> just keep adding
<asp:TemplateField> <ItemTemplate> checkboxes <asp:CheckBox ID="CheckBox2" runat="server" /> </ItemTemplate> </asp:TemplateField>lusty_learne...
Participant
782 Points
390 Posts
Re: asp:table checkboxes display - need help
Jun 08, 2012 06:26 PM|LINK
jbo, I am sorry that I put GridView. But we are using asp:table to display the data. Sorry for the miscommunication. Could you please read it once agian.
Thanks!
L
lusty_learne...
Participant
782 Points
390 Posts
Re: asp:table checkboxes display - need help
Jun 08, 2012 07:21 PM|LINK
I think it is something to do with RepeatColumns property in the CheckBoxList. If I set it to say RepeatColumns="4" then it would make 4 columns. I am testing and will update it here if all looks good.
jbo796
Member
23 Points
25 Posts
Re: asp:table checkboxes display - need help
Jun 08, 2012 09:34 PM|LINK
superguppie
All-Star
48225 Points
8679 Posts
Re: asp:table checkboxes display - need help
Jun 12, 2012 03:09 PM|LINK
You could wrap the table in a div. Set the height of the div and set overflow:auto. That should put the scroll-bar on the div, and keep your save button always on screen.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.