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

GridDateTimeColumn - Add hint text

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rishi
Top achievements
Rank 1
Rishi asked on 26 Nov 2013, 08:33 PM
Hi 

I have a requirement to add a watermark/ put a date format hint beside the calander icon in the GridDateTimeColumn.. is there a property that is available on the Telerik grid or can you suggest a way of achieving this... 

This is what i have
<telerik:GridDateTimeColumn HeaderStyle-Font-Bold="true" HeaderText="xxxxx" ColumnEditorID="xxxxDatePicker" 
    DataField="xxxx" DataFormatString={0:dd-MMM-yyyy} UniqueName="xxxxxx" Aggregate="None" HeaderStyle-Width="20%" />


Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 27 Nov 2013, 11:27 AM
Hello,

Please try with the below code snippet.

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
   {
       if (e.Item.IsInEditMode && e.Item is GridEditableItem)
       {
           GridEditableItem item = e.Item as GridEditableItem;
           (item["xxxxxx"].Controls[0] as RadDatePicker).DateInput.EmptyMessage = "your place holder";
       }
   }


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Rishi
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or