This question is locked. New answers and comments are not allowed.
I have migrated from build 2010.1.222 to the full release 2010.1.309 and am now having some issues with filtering on the grid.
I have my localisation set to en-GB as we're in the UK. My column is declared as follows:
The dates are displayed in the grid correctly and now the dates in the filter popup show in the same format (see my earlier question about this issue)
The problem is the page is still treating these dates as if they were in US format. For instance if I try and filter the grid to all records from yesterday it tries to query for all records after July 4th rather than April 7th :(
How can I get the grid to utilise the UICulture settings for the page? The web.config declares both the culture and uiCulture as en-GB.
My full grid declaration is:
I have my localisation set to en-GB as we're in the UK. My column is declared as follows:
| Dim colTimeStamp As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, Date)(grid, Function(a) a.DateStamp) |
| colTimeStamp.Title = "DateStamp" |
| colTimeStamp.Format = "{0:dd/MM/yyyy HH:mm}" |
The problem is the page is still treating these dates as if they were in US format. For instance if I try and filter the grid to all records from yesterday it tries to query for all records after July 4th rather than April 7th :(
How can I get the grid to utilise the UICulture settings for the page? The web.config declares both the culture and uiCulture as en-GB.
My full grid declaration is:
| Dim grid As Telerik.Web.Mvc.UI.Grid(Of PortalAudit) = Html.Telerik.Grid(Of PortalAudit) _ |
| .Name("AuditGrid") _ |
| .Pageable(Function(p) p.Total(CInt(ViewData("Total")))) _ |
| .Sortable() _ |
| .Filterable() _ |
| .EnableCustomBinding(True) _ |
| .ClientEvents(Function(events) events.OnError("onGridError")) _ |
| .DataBinding(Function(d) d.Ajax.Select("AuditListing", "Audit")) |
| grid.Paging.PageSize = 20 |
| Dim colUserName As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, String)(grid, Function(a) a.UserName) |
| Dim colAction As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, String)(grid, Function(a) a.Action) |
| Dim colController As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, String)(grid, Function(a) a.Controller) |
| colController.Title = "Area" |
| Dim colAffectedEntity As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, String)(grid, Function(a) a.AffectedEntity) |
| Dim colStatus As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, Boolean)(grid, Function(a) a.Status) |
| Dim colDescription As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, String)(grid, Function(a) a.Description) |
| Dim colTimeStamp As New Telerik.Web.Mvc.UI.GridBoundColumn(Of PortalAudit, Date)(grid, Function(a) a.DateStamp) |
| colTimeStamp.Title = "DateStamp" |
| colTimeStamp.Format = "{0:dd/MM/yyyy HH:mm}" |
| grid.Columns.Add(colUserName) |
| grid.Columns.Add(colController) |
| grid.Columns.Add(colAction) |
| grid.Columns.Add(colAffectedEntity) |
| grid.Columns.Add(colStatus) |
| grid.Columns.Add(colDescription) |
| grid.Columns.Add(colTimeStamp) |
| grid.Render() |