Hi,
I am interested in hiding filter row in XamDataGrid while filtering is retained. Is there any way to do this?
I tried to hook up for InitializeRecord with the following body, but it did not work.if (e.Record is FilterRecord) e.Record.Visibility = Visibility.Collapsed;
Thanks,Peter
Hello Peter, I see now the scenario you are you trying to achieve, I think you can use the sample “Custom Filtering via External UI” and “Alphabetic Filtering via Extendet Ui” form the Xam Feature Browser. There is pretty nice example how you can use filtering via extent UI without showing the filter row in the grid. I hope this is helpful, let me know if you have any further questions.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
I have found a workaround for that. You have to set FieldSettings.FilterOperandUIType to None. Which hides the entire row.
Peter
Hi Dimi,
I would like to apply filtering on the grid using context menu, but I don't want to show the users either the filter row or the filter button in the column header. When user clicks on the menu item it should filter out undesired records. Afaik filtering works only when AllowFiltering is set to true, but in that case either FilterRecord or LabelIcons is set to FilterUIType.
It would be nice if I could filter rows without displaing the filter row to the users.
Cheers,Peter
Hi Peter, I am not sure I understand your scenario correctly but generally you can hide a record filter Row, You can handle RecordFilterChanging or RecordFilterChanged events and check for the record filter: if (this.myGrid.ActiveRecord is FilterRecord) { this.myGrid.ActiveRecord.Visibility = Visibility.Collapsed; }Let me know if you have any future questions about that.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.