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

Advanced Form input controls width

5 Answers 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gavin Pollock
Top achievements
Rank 1
Gavin Pollock asked on 01 Jun 2010, 05:14 PM
Hi there,

I am experiencing some strange behaviour where the RadInput controls (timepicker, the RadTextInput for the subject, and the combobox's) all appear to be setting their inner width of the input control to 127px. I have tried overriding this by CSS class, inherit styles. There are no Themes attached to the project or anything like that.

Could it be inheriting this somehow from the Outlook2007 skin defaults? It looks like the Width is being set to 130px somehow by a default, which with the padding taken into account, the initialization javascript that your controls run is then rendering the width.

Any ideas?

Cheers
Gavin

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Jun 2010, 11:03 AM
Hi Gavin,

Are you using the Advanced Templates demo? If yes, can you be more specific what exactly you perceive as a problem or what you need to achieve? Do you experience the same problem with the online demo?

Regards,
Peter
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
Gavin Pollock
Top achievements
Rank 1
answered on 03 Jun 2010, 11:24 AM
Hi there,

Yes I am customising the Advanced Form template with a slightly different layout. All I'm actually trying to achieve is to make the width of the Subject field 300px. However no matter how I try do this, it stays at 130px.

I have tried setting the Width property of the RadTextBox, and applying Css classes to the RadTextBox but nothing appears to change the width.

Cheers
Gavin
0
Peter
Telerik team
answered on 09 Jun 2010, 08:54 AM
Hi Gavin,

You can download a working sample from here (SchedulerCustomAdvancedFormQ1_2010_SP1.zip). If you modify the code in AdvancedForm.ascx as follows:
<asp:Panel runat="server" ID="BasicControlsPanel" CssClass="rsAdvBasicControls" OnDataBinding="BasicControlsPanel_DataBinding">
                   <telerik:RadTextBox runat="server" ID="SubjectText" Width="300px" Label='<%# Owner.Localization.AdvancedSubject + ":" %>'
                       Text='<%# Eval("Subject") %>' />
you should get the result as in the attached screenshot.

Please, let me know if I am missing something.


Regards,
Peter
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
Gavin Pollock
Top achievements
Rank 1
answered on 09 Jun 2010, 08:57 AM
Hi Peter,

That's the first thing I tried... I think it's ME that must be missing something! There must be something else on the form or the page that is influencing the behaviour. It's just ignoring that totally.

I will try puzzle through it, and if I can't figure it out will open a support ticket.

Cheers
Gavin
0
T. Tsonev
Telerik team
answered on 10 Jun 2010, 10:54 AM
Hello Gavin ,

You can use Firebug to track down any offending CSS styles on the page that might be interfering with the inputs. Also, it's worth noting that the advanced form script adjusts input widths (the _initializeAllDayCheckbox function to be specific). It doesn't have any hardcoded values and should work, but you can try disabling it to see if that helps.

Best wishes,
Tsvetomir Tsonev
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.
Tags
Scheduler
Asked by
Gavin Pollock
Top achievements
Rank 1
Answers by
Peter
Telerik team
Gavin Pollock
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or