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

GridDateTimeColumn with DateTimePicker is grayed out and doesn't work

4 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 03 Apr 2009, 09:28 PM
Hi,

I am having a problem that I can't figure out.  I am trying to use the RadGrid to manage a list, part of which is a LastUpdated for each item.  It is stored in a database as a DateTime and I am using a LINQ to SQL datasource object.  Everything works great in the grid except the date time picker.  I am using the following code for my Date Time column:

<telerik:GridDateTimeColumn DataField="LastUpdated" HeaderText="LastUpdated"  
                            SortExpression="LastUpdated" UniqueName="LastUpdated"  
                            DataType="System.DateTime" PickerType="DateTimePicker">
</telerik:GridDateTimeColumn> 

The date and time picker icons show up but they are grayed out and I can't do anything with them.  I have searched and searched and no one else seems to have had this problem and I have made sure my code is using the exact same syntax as others who have gotten theirs working.  What am I doing wrong.  Did I forget something important?  I am using the ASPNET AJAX Q2 2008.  Thanks in advance.

Brandon

4 Answers, 1 is accepted

Sort by
0
Brandon
Top achievements
Rank 1
answered on 03 Apr 2009, 10:53 PM
Update:  I have gotten the DateTimePicker to work.  The issue was that I had the RadGrid in an Update Panel so that it would update using Ajax.  Is there a way I can still have the Update Panel and have the DateTimePicker?  Because I really don't want to have to reload the page everytime the user clicks to edit an item.  Just to clarify I have also tried the RadAjaxManager and gotten the same problem.  There is something with the RadGrid that is making the calendar picker disappear when it is in an update panel.
0
Sebastian
Telerik team
answered on 06 Apr 2009, 04:46 PM
Hello Brandon,

Does the same issue appear with the latest release 2009.1.402 of RadControls for ASP.NET AJAX? Is there a particular reason why you are using previous version of the controls? I made several local tests based on this online demo of the product:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx

and everything seemed to work as expected. I will appreciate if you outline the differences in your particular case as they can help us identify the cause of the issue to address it asap.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Homam
Top achievements
Rank 1
answered on 18 Dec 2010, 10:31 AM
Hi,

I've had the same problem, I'm using Q3 2010 version, The problem is appear when the RadGrid exists inside an UpdatePanel.

Any help ! 

Regards,
Homam
0
Kiara
Top achievements
Rank 1
answered on 20 Dec 2010, 02:07 PM
I do use the same telerik version and I do not have the problem, Homam. May be some collision with the grid's wrapping container z-index stops you from clicking the picker icon? Check that with IE dev toolbar or Firebug.

Kiara
Tags
Grid
Asked by
Brandon
Top achievements
Rank 1
Answers by
Brandon
Top achievements
Rank 1
Sebastian
Telerik team
Homam
Top achievements
Rank 1
Kiara
Top achievements
Rank 1
Share this question
or