I want to know How can I know if the filter's textbox is empty or not?
I thought I could use "IsFilteredOut" but it's not the property I was looking for.
Thank you!
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello ,
In the FilterCEllValueChsanged event you could check if the e.FilterCell.Text is null or empty (Returns the text of the cell. If the cell is in edit mode, it returns the text in the editor being used for editing the cell.). If it is null or empty this mean that the filter cell is empty. Or you could handle AfterRowFilterChanged event and to check which columns have applied filters condition.
Please let me know if you have any further questions.
Thank you for your answer.
I tried what you wrote, but it doesn't work either: my problem occurs after I delete all the text from the filter. I use FilterCellValueChanged event and in it's method I want to check if there any column with filter. When I try to check the condition: FilterConditions.Count == 0 on all my ColumnFilters, one of the columns get false (the last column I deleted it's filter, and it still has the condition).
Do I do something wrong?
Hello dori greeny,
You can use the FilterConditions property and check if it has a Count of 0. If there are no FilterConditions, then the filter's textbox is empty.
For example:
if (this.UltraGrid1.DisplayLayout.Bands[0].ColumnFilters[0].FilterConditions.Count == 0) { // your logic here }
You can change the Band and the ColumnFilters by adjusting the indices in the code above.
Elizabeth AlbertLocalization Engineer