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

Problem with GridDateTimeColumn

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeffrey
Top achievements
Rank 1
Jeffrey asked on 20 Sep 2012, 05:42 AM
Hi guys, 
I just want to ask if someone has the solution to my problem regarding GridDateTimeColumn in RadGrid. I want to clear the history of this column. See my attached image. 

 Thanks in Advance, 
Jeff

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 25 Sep 2012, 06:11 AM
Hi Jeffrey,

You could try using the following code snippet;
void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    GridEditFormItem item = e.Item as GridEditFormItem;
    if (item != null && e.Item.IsInEditMode)
    {
        (item["DateTimeColumn"].Controls[0] as RadTimePicker).DateInput.Attributes.Add("autocomplete","off");
    }
}
Where the GridDateTimeColumn has following declaration:
<telerik:GridDateTimeColumn PickerType="TimePicker" UniqueName="DateTimeColumn" DataField="Date"></telerik:GridDateTimeColumn>
Additionally this behavior could be observed only when the full postback to the server is occurred and the input submits its value. So to prevent this behavior you could use RadAjaxPanel or RadAjaxManager and ajaxify your RadGrid. Please give the suggestions try and let me know if they help you.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Jeffrey
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or