This is a migrated thread and some comments may be shown as answers.

Wrong filter function

2 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pam Redrum
Top achievements
Rank 1
Pam Redrum asked on 26 Mar 2010, 09:15 AM
Hello,
  I have a problem about the filter on datetime field, when I choose a date, select some filter command just like "LessThan", the filter works right. Then I select "NoFilter", after ajax postback, the filter function goes to "EqualTo", not NoFilter, and the value in the textbox not cleared too. the column code are here

<telerik:GridDateTimeColumn DataField="DateCreated" DataFormatString="{0:dd.MM.yyyy}" HeaderText="Opprettet" SortExpression="DateCreated"  FilterControlWidth="90px" 
AutoPostBackOnFilter="false" FilterDelay="1" PickerType="DatePicker" UniqueName="DateCreated" DataType="System.DateTime" 
                        /> 

And in the other page, the similar code works, and the textbox cleared.

<telerik:GridDateTimeColumn DataField="PublishDate" HeaderText="Pub.dato" ReadOnly="True" SortExpression="Date.Published" DataFormatString="{0:dd.MM.yyyy}" DataType="System.DateTime" PickerType="DatePicker" FilterControlWidth="60px" UniqueName="ReleaseDate"


2 Answers, 1 is accepted

Sort by
0
Pam Redrum
Top achievements
Rank 1
answered on 26 Mar 2010, 09:39 AM
fixed by remove "AutoPostBackOnFilter="false" FilterDelay="1""
Is this alright?
0
Accepted
Martin
Telerik team
answered on 31 Mar 2010, 04:08 PM
Hello Pam Redrum,

When you set the FilterDelay property, the column assumes a default filter operation of "Contains" for string types or "EqualTo" for numeric types. This operation will be applied if the filtering control has a value and "NoFilter" option is selected. To go through this default behavior you should clear the filtering control value before you trigger the "NoFilter" operation.

As you have already verified, removing the FilterDelay setting disables the above functionality.
 
I hope this helps,
Martin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Pam Redrum
Top achievements
Rank 1
Answers by
Pam Redrum
Top achievements
Rank 1
Martin
Telerik team
Share this question
or