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

Textbox isn't displayed for GridDateTimeColumn

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 23 Jun 2011, 05:38 PM
I changed my column type from GridBoundColumn to GridDateTimeColumn using the datepicker control. When I edit a row I don't see the textbox with the date in it (see image).  Also how to control the position of the calender control
<%--<telerik:GridBoundColumn SortExpression="EffectiveDate"
                               HeaderText="EffectiveDate" HeaderButtonType="TextButton"
                               DataField="EffectiveDate" UniqueName="EffectiveDate"
                               DataFormatString="{0:MM/dd/yyyy}" Visible="True">
                                <HeaderStyle Width="80px" />
                           </telerik:GridBoundColumn>--%>
                           <telerik:GridDateTimeColumn DataField="EffectiveDate" DataFormatString="{0:MM/dd/yyyy}" PickerType="DatePicker"
                               HeaderText="EffectiveDate" SortExpression="EffectiveDate" DataType="System.DateTime"
                               UniqueName="EffectiveDate" EditDataFormatString="MM/dd/yyyy" >
                               <HeaderStyle Width="170px" />
                           </telerik:GridDateTimeColumn>
.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 28 Jun 2011, 12:21 PM
Hello Marc,

I tried replicating the issue in this demo when the In-line editing mode is used but to no avail. can you specify what are the differences between your grid and this in the demo, or paste the whole page code here (using the Format Code Block tool of the text editor)?

Regarding the calendar position: You can handle the ItemCreated event of the grid, find the RadDatePicker control in the particular cell and manipulate its properties from there.
For more information, refer to the below article:
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html


Greetings,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Marc
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or