Hello,
I need to set the calendar tooltips (to Dutch) of a DataPicker. The DataPicker is used within in an RadGrid.
I can set the attributes of the textbox, but I cannot set the attributes of the calendar control, that is, I can set them, but they are not used, the application shows the default values.
This is the relevant part of the aspx:
And this is the code behind:
What am I doing wrong / why doesn't this work as expected?
Regards,
-Ruud.
I need to set the calendar tooltips (to Dutch) of a DataPicker. The DataPicker is used within in an RadGrid.
I can set the attributes of the textbox, but I cannot set the attributes of the calendar control, that is, I can set them, but they are not used, the application shows the default values.
This is the relevant part of the aspx:
| <!-- snapshot from the RadGrid --> |
| <telerik:GridDateTimeColumn |
| DataField="Gebdatum" HeaderText="Geboorte datum" UniqueName="Gebdat" > |
| </telerik:GridDateTimeColumn> |
And this is the code behind:
| Protected Sub FormatieRadGrid_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles FormatieRadGrid.ItemCreated |
| If (TypeOf e.Item Is Telerik.Web.UI.GridEditableItem AndAlso e.Item.IsInEditMode) Then |
| 'This is working |
| Dim gebdat As Telerik.Web.UI.RadDatePicker = CType(CType(e.Item, Telerik.Web.UI.GridEditableItem)("Gebdat").Controls(0), Telerik.Web.UI.RadDatePicker) |
| gebdat.Width = 80 |
| gebdat.tooltip = "geboorte datum" |
| gebdat.EnableTyping = False |
| 'This does work as it gives no exceptions, but the code seems to be ignored |
| Dim cal As Telerik.Web.UI.RadCalendar = CType(gebdat.FindControl("calendar"), Telerik.Web.UI.RadCalendar) |
| cal.ToolTip = "Toon kalender popup" |
| cal.FastNavigationSettings.EnableTodayButtonSelection = False |
| cal.FastNavigationStep = 12 |
| cal.FastNavigationNextToolTip = "volgend jaar" |
| cal.FastNavigationPrevToolTip = "vorig jaar" |
| cal.NavigationNextToolTip = "volgende maand" |
| cal.NavigationPrevToolTip = "vorige maand" |
| 'The calendar control still shows its defaults values in stead of the adapted ones |
| End If |
| End Sub |
Regards,
-Ruud.
