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

[Solved] Date Input width

1 Answer 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rob
Top achievements
Rank 1
rob asked on 21 Dec 2009, 09:31 PM

Using Version=2009.1.311.35
On an empty RadGrid, in insert mode, the <DateInput> of the Date Picker inside a grid template column, shows with no width (See attached image).

Here's my code:
  <telerik:GridTemplateColumn HeaderText="Start Date" HeaderStyle-Width="130px" SortExpression="StartDate" UniqueName="StartDate">  
                                    <EditItemTemplate> 
                                        <telerik:RadDatePicker ID="RadDatePickerStartDate" runat="server" Culture="English (United States)" 
                                        MinDate='<%# GetVideoStartDate(Eval("StartDate")) %>' MaxDate='<%# GetVideoEndDate() %>' 
                                            DbSelectedDate='<%# Bind("StartDate", "{0:d}") %>' SharedCalendarID="">  
                                            <DateInput ID="DateInputStartDate" runat="server" Width="130px" /> 
                                        </telerik:RadDatePicker> 
                                    </EditItemTemplate> 
                                    <ItemTemplate> 
                                        <asp:Label ID="dtLabelStartDate" runat="server" Text='<%# Eval("StartDate", "{0:d}") %>' 
                                            Width="130px" /> 
                                    </ItemTemplate> 
                                </telerik:GridTemplateColumn> 
 

Thanks,
Rob

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Dec 2009, 06:49 AM
Hello Rob,

Please set the width to the RadDatePicker, not to the DateInput inside. Widths for nested DateInputs are ignored.

I am not sure why the column width is not applied in this case, but if you provide a complete demo, I will examine it.

Regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
rob
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or