Hi
I am using gridviewdatetime column in my gridview (winforms). When user click the cell The calendar popup to select the date. The calendar control have two default button 1. Clear 2. Today. I want to diable or remove the Clear button from calendar popup.
Please reply (Urgent)
Though the threat is 10 years old, it might help someone.
Handle the cell editor initialized event of the grid.
Access the active editor and set the appropriate property. E.g.
Private Sub OnGridCellEditorInitialized(sender As Object, e As GridViewCellEventArgs)
If e.ColumnIndex = ListColumns.Date Then
Dim editor As RadDateTimeEditor = CType(Me.grdList.ActiveEditor, RadDateTimeEditor)
Dim editorElement As RadDateTimePickerElement = CType(editor.EditorElement, RadDateTimePickerElement)
editorElement.Calendar.ClearButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed
End If
End Sub
NOTE: ListColumns is an enum having list of columns.