Because of the bug "CAS-121066-B5D6C5" http://ko.infragistics.com/community/forums/p/83161/417509.aspx#417509 I cannot use collectionviewsource to filter out the rows i want to show on the grid.
I am not instead programatically setting the filter on the grid with below code, it all works okay, but when I try to set the filter with 1000+ condition, i get a stackoverflow exception, i think the grid is trying to compile an expression and dies because of the overflow thus taking the process down with it
var rowFiltersCollection = rowsManager.RowFiltersCollectionResolved;
var rowsFilter = new RowsFilter(typeof(<DataType>), Grid.Columns.DataColumns[<ColumnName>]);rowsFilter.Conditions.LogicalOperator = LogicalOperator.Or;rowsFilter.Conditions.Clear();
if (listOfFilterInToApply.Any()){ foreach (var id in listOfFilterInToApply) { rowsFilter.Conditions.Add(new ComparisonCondition { CaseSensitive = false, FilterValue = id, Operator = ComparisonOperator.Equals }); }} rowFiltersCollection.Add(rowsFilter);
Hello Rohit,
I am checking if this is still an issue for you.
If you require any further assistance please do not hesitate to ask.
Hi Rohit,
Thank you for you post. I have been looking into your issue and it seems that it is related to our XamGrid, not XamDataGrid. I have been trying to create an application using the provided code without any success. Could you please attach a sample application that reproduce it ?
Looking forward to hearing from you.
Because of these two issues i cannot apply any filtering on the grid, and is a show stopper, can you suggest any work around. I want to apply multiple tokens search on the grid (on multiple columns). Can you explain how i can achieve this?