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

GridDateTimeColumn

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 06 Mar 2008, 04:39 AM
Hi,

Can I change the property of the picker, for example : "MinDate"? If Yes, How to change it?

I have tried this code, but it seems doesn't work.
protected void rgFamilies_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
            if (e.Item is GridEditableItem && (e.Item as GridEditableItem).IsInEditMode) 
            { 
                GridDateTimeColumnEditor dtpDate = editItem.EditManager.GetColumnEditor("BirthDate") as GridDateTimeColumnEditor; 
 
                dtpDate.PickerControl.MinDate = new DateTime(1900, 1, 1); 
                dtpDate.DataBind(); 
            } 


Regards,

Daniel


1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 Mar 2008, 02:51 PM
Hello Daniel,

You can use the SelectedDateChanged event of the pickers to achieve this functionality.
Please refer to the following forum post, which discusses the same matter. Review the provided information and let us know if it helps.

Regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or