Click here to Skip to main content
15,887,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all
I am using rad grid having template columns for "Date" field and and column containing
double type values but when i am trying to filter using in built filters of grid its not working.
any help regarding this issue will be appreciated.

grid template column for date-

C#
< telerik:GridTemplateColumn HeaderText="Date" UniqueName="ChangedOn" AutoPostBackOnFilter="true" DataType="System.DateTime" CurrentFilterFunction="Contains" DataField="ChangedOn" 
     <ItemTemplate>
                                  <%#DataBinder.Eval(Container,"DataItem.ChangedOn")%>;
                              </ItemTemplate>
                                
                               
                 </telerik:GridTemplateColumn>


and for this column problem is when i am trying to filter the values which are less than 0 i am not able to get required results

XML
<telerik:gridtemplatecolumn uniquename="ForeignExchangeRateTypeName" headertext="Exchange Rate Type" datafield="ForeignExchangeRateTypeName" autopostbackonfilter="true"
                                           SortExpression ="ForeignExchangeRateTypeName" currentfilterfunction="Contains" FilterControlWidth="50%">
                               <ItemTemplate>
                                   <asp:Label ID="Lbl_ForeignExchangeRateTypeName" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.ForeignExchangeRateTypeName")%>' ></asp:Label>
                               </ItemTemplate>
                               <EditItemTemplate >
                                     <telerik:RadComboBox ID="rcb_ForeignExchangeRateTypeName"  runat="server"
                                                             DataTextField="ForeignExchangeRateTypeName" DataValueField="ForeignExchangeRateTypeID"AutoPostBack="true"
  MarkFirstMatch="True"  OnSelectedIndexChanged="rcb_ForeignExchangeRateTypeName_OnSelectedIndexChanged"Height="100px">     </telerik:RadComboBox>
                               </EditItemTemplate>
                               <ItemStyle Width="10%" 
                                                                                                                    
                                                             
                                                            
                                   HorizontalAlign="Left" />
                               <HeaderStyle   />
            </telerik:gridtemplatecolumn>






Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900