I have the below code, data is bound to the grid. All the filters work great except GridDateTimeColumn filters - for some reason the filters do not respect the values that I feed into the text box. eg: if I put in 6/10/2009 and choose equal to - I get no rows. Can Someone please tell me why ? I used to use GridBoundColumn for the date , the filter seemed to work but the problem was when users enter 06/10/2009 , it would not convert it back to 6/10/2009. For this reason I changed it to GridDateTimeColumn and now the filters do not work at all. My version of the controls is 2008.3.1314.35.
| <telerik:RadGrid ID="gridInvoices" DataSourceID="odsInvoices" AllowSorting="true" |
| AllowPaging="true" AllowFilteringByColumn="true" AutoGenerateColumns="false" |
| runat="server" EnableLinqExpressions="false" Skin="Office2007" PageSize="15" |
| OnItemDataBound="gridInvoices_ItemDataBound" OnInit="gridInvoices_Init" |
| AllowAutomaticDeletes="true" > |
| <PagerStyle Mode="Slider" /> |
| <MasterTableView DataKeyNames="TRX_NUMBER" ClientDataKeyNames="TRX_NUMBER" CommandItemDisplay="Top"> |
| <Columns> |
| <telerik:GridHyperLinkColumn HeaderStyle-Width="30px" NavigateUrl="NonContract.aspx" UniqueName="Edit" |
| Text="Edit"> |
| <FilterTemplate> |
| <asp:LinkButton ID="btnShowAll" runat="server" OnClick="btnShowAll_Click" Text="Clear Filters"></asp:LinkButton> |
| </FilterTemplate> |
| </telerik:GridHyperLinkColumn> |
| <telerik:GridHyperLinkColumn AllowFiltering="false" ShowFilterIcon="false" HeaderStyle-Width="30px" |
| NavigateUrl="NonContract.aspx" UniqueName="Copy" HeaderText="" Text="Copy"> |
| </telerik:GridHyperLinkColumn> |
| <telerik:GridNumericColumn HeaderStyle-Width="50px" FilterControlWidth="50px" HeaderStyle-HorizontalAlign="center" ItemStyle-HorizontalAlign="right" DataField="INVOICE_AMOUNT" DataFormatString="{0:c}" HeaderText="Amount" |
| <telerik:GridDateTimeColumn HeaderStyle-Width="60px" FilterControlWidth="60px" HeaderStyle-HorizontalAlign="center" DataField="CREATION_DATE" DataFormatString="{0:d}" |
| CurrentFilterFunction="EqualTo" ShowFilterIcon="true" HeaderText="Creation Date" DataType="System.DateTime" PickerType="None" HtmlEncode="false" /> |
| </Columns> |
| </MasterTableView> |
| <PagerStyle AlwaysVisible="true" /> |
| <ClientSettings> |
| <ClientEvents OnFilterMenuShowing="filterMenushowing" /> |
| </ClientSettings> |
| </telerik:RadGrid> |