This is a migrated thread and some comments may be shown as answers.

horizontal radio buttons inside ResourceControl.ascx

4 Answers 492 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Lior S
Top achievements
Rank 1
Lior S asked on 08 Mar 2010, 04:00 PM
Hi,
I have a problem using horizontal radio buttons (RadioButtonList) inside the ResourceControl.ascx for my AdvancedEditTemplate.

There is lots of space between the radio buttons and i just need 20px between them. I tried to change the width, margin and lots of other things but couldn't fix it.

I added the same RadioButtonList to the "Sample project of the Customizing the Advanced Template example" (Q3 2009) and had the same problem so i took a screenshot and attached to this thread.

I'll appreciate any help.

 

4 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 12 Mar 2010, 03:32 PM
Hello Lior,

Unfortunately I can't reproduce your issue in the example you've mentioned. Can you send the RadioButtonList definition markup you are using? Thank you in advance.

Sincerely yours,
Kamen Bundev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lior S
Top achievements
Rank 1
answered on 14 Mar 2010, 10:16 AM

hi,
I put the radio button list inside the AdvancedControlsPanel (AdvancedForm.ascx) and i got lots of space between the radio buttons.
I need minimal space between the radio buttons. This problem occurs only inside that modal dialog.

 

 

 

 

 

 

 

<asp:Panel runat="server" ID="AdvancedControlsPanel" CssClass="rsAdvMoreControls">

 

 

<asp:RadioButtonList ID="rbl_signs" runat="server" RepeatDirection="Horizontal" BorderColor="Black"

 

BorderStyle="Solid" BorderWidth="1px" Width="20px">

 

<asp:ListItem Value="1">a</asp:ListItem>

 

<asp:ListItem Value="2">b</asp:ListItem>

 

<asp:ListItem Value="3">c</asp:ListItem>

 

</asp:RadioButtonList>

 

 

 

 

 

 

 

0
Accepted
Kamen Bundev
Telerik team
answered on 15 Mar 2010, 04:25 PM
Hello Lior,

I managed to reproduce it - the label has a default width of 75px, so you need to override it. Set a CssClass="RadioList" to your RadioButtonList, remove its width and add this CSS to your page:
.RadScheduler .rsAdvancedEdit .RadioList input
{
    display: block;
}   
.RadScheduler .rsAdvancedEdit .RadioList label
{
    width: 8px;
}   
.RadScheduler .rsAdvancedEdit .RadioList td
{
    width: 28px;
}   

This should fix it.

Best wishes,
Kamen Bundev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lior S
Top achievements
Rank 1
answered on 16 Mar 2010, 11:11 AM
It's Working! Thanks.
Tags
Scheduler
Asked by
Lior S
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Lior S
Top achievements
Rank 1
Share this question
or