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

[Solved] Week display on Grid Date Column

1 Answer 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 01 Jul 2009, 04:30 PM
Hello
Is there a way to turn off the week display on the drop down calendar (datepicker) for a GridDateTimeColumn?
Thanks,

John

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Jul 2009, 04:35 AM
Hi John,

Try the following code snippet for hiding row headers of dropdown calendar of GridDateTimeColumn.

ASPX:
 
<telerik:GridDateTimeColumn DataField="OrderDate" HeaderText="date" UniqueName="date" PickerType="DatePicker"
</telerik:GridDateTimeColumn> 

C#:
 
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
     if (e.Item is GridEditableItem && e.Item.IsInEditMode)  
        {  
            GridEditableItem item = e.Item as GridEditableItem;                  
            RadDatePicker date = item["date"].Controls[0] as RadDatePicker;  
            if (date != null)  
                date.SharedCalendar.ShowRowHeaders = false;  
        }  

-Shinu
Tags
Grid
Asked by
John
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or