Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Datalist spacing

Reply
Thread Tools

Datalist spacing

 
 
tshad
Guest
Posts: n/a
 
      06-23-2005
I have a Datalist that will display 4 columns of data.

I am not using a table format just labels to display a radio button and
label for the radio button.

Is there a way to set a size for the lable so that all the radio buttons
line up on top of each other? Right now they are flush next to each other
even if there is only 5 characters or 20 characters.

I have the datalist set as:

<aspataList ID="DataList1" RepeatColumns="4" width="100"
RepeatDirection="Horizontal" RepeatLayout="Flow" runat="server" >
<ItemTemplate> <vs:GroupRadioButton id="CvLetters"
runat="server" OnCheckedChanged="SelectCoverLetter_Click"
AutoPostBack="True" GroupName="CVRLettersGroup" />
<asp:label Id="CVLLabel" width="200px" text='<%#
Container.DataItem("CoverLetterTitle") %>' runat="server"/><asp:label
Id="CVLIDLabel" visible=false text='<%# Container.DataItem("CoverLetterID")
%>' runat="server"/>
</ItemTemplate>
<HeaderTemplate><br><b><u>CoverLetter(s) assigned to this
Resume</u></b><br> </HeaderTemplate>
<footertemplate><br></footertemplate>
</aspataList>

I tried setting the label width to 200px, but that didn't work. BTW the
vs:GroupRadioButton is just a radio button.

Thanks,

Tom


 
Reply With Quote
 
 
 
 
tshad
Guest
Posts: n/a
 
      06-23-2005
"tshad" <> wrote in message
news:...
>I have a Datalist that will display 4 columns of data.
>
> I am not using a table format just labels to display a radio button and
> label for the radio button.
>
> Is there a way to set a size for the lable so that all the radio buttons
> line up on top of each other? Right now they are flush next to each other
> even if there is only 5 characters or 20 characters.
>
> I have the datalist set as:
>
> <aspataList ID="DataList1" RepeatColumns="4" width="100"
> RepeatDirection="Horizontal" RepeatLayout="Flow" runat="server" >
> <ItemTemplate> <vs:GroupRadioButton id="CvLetters"
> runat="server" OnCheckedChanged="SelectCoverLetter_Click"
> AutoPostBack="True" GroupName="CVRLettersGroup" />
> <asp:label Id="CVLLabel" width="200px" text='<%#
> Container.DataItem("CoverLetterTitle") %>' runat="server"/><asp:label
> Id="CVLIDLabel" visible=false text='<%#
> Container.DataItem("CoverLetterID") %>' runat="server"/>
> </ItemTemplate>
> <HeaderTemplate><br><b><u>CoverLetter(s) assigned to this
> Resume</u></b><br> </HeaderTemplate>
> <footertemplate><br></footertemplate>
> </aspataList>
>
> I tried setting the label width to 200px, but that didn't work. BTW the
> vs:GroupRadioButton is just a radio button.


I also setting the ItemStyle-Width, but that didn't seem to do anything:

ItemStyle-Width="100px"

Tom
>
> Thanks,
>
> Tom
>



 
Reply With Quote
 
 
 
 
tshad
Guest
Posts: n/a
 
      06-24-2005
"tshad" <> wrote in message
news:...
> "tshad" <> wrote in message
> news:...
>>I have a Datalist that will display 4 columns of data.
>>
>> I am not using a table format just labels to display a radio button and
>> label for the radio button.
>>
>> Is there a way to set a size for the lable so that all the radio buttons
>> line up on top of each other? Right now they are flush next to each
>> other even if there is only 5 characters or 20 characters.
>>
>> I have the datalist set as:
>>
>> <aspataList ID="DataList1" RepeatColumns="4" width="100"
>> RepeatDirection="Horizontal" RepeatLayout="Flow" runat="server" >
>> <ItemTemplate> <vs:GroupRadioButton id="CvLetters"
>> runat="server" OnCheckedChanged="SelectCoverLetter_Click"
>> AutoPostBack="True" GroupName="CVRLettersGroup" />
>> <asp:label Id="CVLLabel" width="200px" text='<%#
>> Container.DataItem("CoverLetterTitle") %>' runat="server"/><asp:label
>> Id="CVLIDLabel" visible=false text='<%#
>> Container.DataItem("CoverLetterID") %>' runat="server"/>
>> </ItemTemplate>
>> <HeaderTemplate><br><b><u>CoverLetter(s) assigned to
>> this Resume</u></b><br> </HeaderTemplate>
>> <footertemplate><br></footertemplate>
>> </aspataList>
>>
>> I tried setting the label width to 200px, but that didn't work. BTW the
>> vs:GroupRadioButton is just a radio button.

>
> I also setting the ItemStyle-Width, but that didn't seem to do anything:
>
> ItemStyle-Width="100px"
>


I also tried to use a table in the itemtemplate, but even though I told it
to repeat horizontal 4 times (which worked in the previous setup), it put
each table on top of each other instead of 4 across:

<aspataList ID="DataList2" RepeatColumns="4"
ItemStyle-Width="100px" RepeatDirection="Horizontal" RepeatLayout="Flow"
runat="server" >
<ItemTemplate>
<table width="20px">
<tr>
<td>
<vs:GroupRadioButton id="CvLetters" runat="server"
OnCheckedChanged="SelectCoverLetter_Click" AutoPostBack="True"
GroupName="CVRLettersGroup" />
<asp:label Id="CVLLabel" text='<%#
Container.DataItem("CoverLetterTitle") %>' runat="server"/><asp:label
Id="CVLIDLabel" visible=false text='<%# Container.DataItem("CoverLetterID")
%>' runat="server"/>
</td>
</tr>
</table>
</ItemTemplate>
<HeaderTemplate><br><b><u>All Stored Cover
Letters</u></b></HeaderTemplate>
</aspataList>

What am I doing wrong here?

Thanks,

Tom

> Tom
>>
>> Thanks,
>>
>> Tom
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datalist Layout spacing problems, row space NancyASAP ASP .Net Datagrid Control 0 06-08-2005 02:20 AM
Datalist RepeatLayout Flow spacing problems ree32 ASP .Net Datagrid Control 0 10-29-2004 03:33 AM
Setting up a datalist control - Item_DataBound for a datalist in a datalist Nevyn Twyll ASP .Net 8 09-09-2004 10:13 PM
Row spacing in DataList Stephan Bour ASP .Net 0 12-08-2003 06:23 PM
Datalist in Datalist How? Gönen EREN ASP .Net 0 08-22-2003 02:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57