I'd like to change the appearance of the date shown within the filter row of my griddatetimecolumn and set it from the default to my native german style.
How do I do that ??
I've tried the itemcreated-event of the grid, but without any success:
Protected Sub Grid_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles Grid.ItemCreated
If TypeOf e.Item Is GridFilteringItem Then
Dim filteringItem As GridFilteringItem = CType(e.Item, GridFilteringItem)
'set dimensions for the filter textbox
'Dim box As TextBox = CType(filteringItem("ContactName").Controls(0), TextBox)
Dim filterItem As GridFilteringItem = DirectCast(e.Item, GridFilteringItem)
Dim DateOpened As RadDatePicker = DirectCast(filterItem("column1").Controls(0), RadDatePicker)
DateOpened.Culture = //some variable i store in session
End If
End Sub 'RadGrid1_ItemCreated
Any advice/ hint on this for me ?? Thanks in advance
Hendrik
How do I do that ??
I've tried the itemcreated-event of the grid, but without any success:
Protected Sub Grid_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles Grid.ItemCreated
If TypeOf e.Item Is GridFilteringItem Then
Dim filteringItem As GridFilteringItem = CType(e.Item, GridFilteringItem)
'set dimensions for the filter textbox
'Dim box As TextBox = CType(filteringItem("ContactName").Controls(0), TextBox)
Dim filterItem As GridFilteringItem = DirectCast(e.Item, GridFilteringItem)
Dim DateOpened As RadDatePicker = DirectCast(filterItem("column1").Controls(0), RadDatePicker)
DateOpened.Culture = //some variable i store in session
End If
End Sub 'RadGrid1_ItemCreated
Any advice/ hint on this for me ?? Thanks in advance
Hendrik