Ask a Question related to ASP.NET General, Design and Development.
-
Trevor Hartman #1
Re: how to make columns the same size in a radio button list
The only thing i can figure out is making the length of the Text property on each listitem the same. That means something like this:
<asp:listitem Text="itemone" />
<asp:listitem Text="item " />
kinda ugly but you could write a function that would do all this for you. i tested it and it works
-trevor
"Mark Kamoski" <mkamoski@yahoo.com> wrote in message news:ODP%23x9uUDHA.2364@TK2MSFTNGP09.phx.gbl...
Hi--
OK, I want...
...a one-line radionbuttonlist...
...with 4 items in it...
...and I want the spacing from the center of any given radio button to either of its immediate neighbors to be the same as the distance from the center ANOTHER given radio button to either of ITS neighbors...
...that is, I want the "columns" of the radionbuttonlist layout to be the same width-- of course, regardless of the length of the text labels for the radio buttons themselves...
...that is, the column width should use the longest radio button label as the gauge and make all of the columns the same width as this longest one...
...I want to do this inline (not in code behind)...
...I do not want to use to make all of the radio button labels the same width...
For example, (but this will probably only make sense if read in Courier or a similar font), assuming that "O" is the radio button...
...I DO NOT want this....
O L1 O LongLabelOne O L2 O LongLabelTwo O L3
...rather, I DO want something like this...
O L1 O LongLabelOne O L2 O LongLabelTwo O L3
How can this be accomplished?
Please advise.
Thank you.
--Mark
Trevor Hartman Guest
-
Radio Button & List to search - ASP
Hi Guys, Can someone point me to a tutorial for DW 8 or advise me on how to do this. I want to search a database using 2 radio buttons and a... -
How to make owner draw radio button?
I'd like to make the buttons that acts like the radio buttons but I'd like to have the icon on top of the button. Can someone tell me how do I... -
How to put a full radio button list in each row of datagrid?
Hello, I have a datagrid where I display images. I want visitors to be able to rate the images on a scale of 1 to 10 by clicking a radio button,... -
radio button list doesn't hold value?
Hi. I have a radio button list with list items assigned via a datareader from a database. Everything looks fine, the items are there on page load,... -
Programmatically Selecting Item in Radio Button List
I have created a radio button list programmatically. C# SqlConnection conn = new SqlConnection("data source=localhost; integrated security=true;... -
Mark Kamoski #2
Re: how to make columns the same size in a radio button list
Trevor--
Thank you for the ideas.
That will, in fact, work-- BUT only if one is using a fixed-pitch font, such as Courier.
If the font is proportional, such as Verdana, then it will NOT work.
If you have any more ideas, please post them.
Thank you.
--Mark
"Trevor Hartman" <synapsee@hotmail.com> wrote in message news:%23TJTvTvUDHA.1280@tk2msftngp13.phx.gbl...
The only thing i can figure out is making the length of the Text property on each listitem the same. That means something like this:
<asp:listitem Text="itemone" />
<asp:listitem Text="item " />
kinda ugly but you could write a function that would do all this for you. i tested it and it works
-trevor
"Mark Kamoski" <mkamoski@yahoo.com> wrote in message news:ODP%23x9uUDHA.2364@TK2MSFTNGP09.phx.gbl...
Hi--
OK, I want...
...a one-line radionbuttonlist...
...with 4 items in it...
...and I want the spacing from the center of any given radio button to either of its immediate neighbors to be the same as the distance from the center ANOTHER given radio button to either of ITS neighbors...
...that is, I want the "columns" of the radionbuttonlist layout to be the same width-- of course, regardless of the length of the text labels for the radio buttons themselves...
...that is, the column width should use the longest radio button label as the gauge and make all of the columns the same width as this longest one...
...I want to do this inline (not in code behind)...
...I do not want to use to make all of the radio button labels the same width...
For example, (but this will probably only make sense if read in Courier or a similar font), assuming that "O" is the radio button...
...I DO NOT want this....
O L1 O LongLabelOne O L2 O LongLabelTwo O L3
...rather, I DO want something like this...
O L1 O LongLabelOne O L2 O LongLabelTwo O L3
How can this be accomplished?
Please advise.
Thank you.
--Mark
Mark Kamoski Guest



Reply With Quote

