6 Answers, 1 is accepted
These two links may help
http://www.telerik.com/help/winforms/calendar_internationalizelocalize.html
http://www.telerik.com/help/winforms/grid_localization.html
Richard
Hi Richard,
thank you for your hints.
In the RadGridLocalizationProvider are no RadGridStringID's for the dropdown calendar of the GridViewDateTimeColumn.
So it is not possible to localize the dropdown calendar of the GridViewDateTimeColumn with the RadGridLocalizationProvider.
The other way would be to get access to the dropdown calendar of the GridViewDateTimeColumn.
I don't know how to get access to the dropdown calendar of the GridViewDateTimeColumn.
Kind Regards,
Ramius
I'll see if I can see, but it's probably going to need getting access to the calendar via the Default editor (cast as a calendar) for that Filter cell.
Richard
I've found how to get to the calendar part.
Use the following URL to get the localization properties
http://www.telerik.com/help/winforms/calendar_internationalizelocalize.html
And here is the code.
Private
Sub
GridView_CellBeginEdit(
ByVal
sender
As
System.
Object
, _
ByVal
e
As
Telerik.WinControls.UI.GridViewCellCancelEventArgs)
Handles
RadGridView1.CellBeginEdit
Dim
editor
As
RadDateTimeEditor
Dim
element
As
RadDateTimeEditorElement
editor = TryCast(
Me
.RadGridView1.ActiveEditor, RadDateTimeEditor)
If
editor IsNot
Nothing
Then
element = TryCast(editor.EditorElement, RadDateTimeEditorElement)
Dim
calendarBehavior
As
RadDateTimePickerCalendar = TryCast(element.GetCurrentBehavior(), RadDateTimePickerCalendar)
Dim
calendar
As
RadCalendar = TryCast(calendarBehavior.Calendar, RadCalendar)
calendar.TodayButton.Text =
"Hoy"
End
If
End
Sub
Hi Richard,
thank you for your help.
Your solution works fine for me.
Kind Regards,
Ramius
@Richard: Thank you for your assistance in the forum. Your Telerik points have been updated
@Ramius: You can use the solution and resources provider by Richard to accomplish your scenario.
Svett
the Telerik team