Server Filter using Contains for Child List

John

I am trying to filter on a value in a child array of an object using server side filtering

I have an object like:

publicclassperson{

publicintid {get; set;}

publicList<int> accountIdList {get; set;} <br>

}

On a grid I generate a custom filter template which allows a user to filter by Accounts (e.g a dropdown list of accounts).
The datasourcerequest object on the server is populated with a filter. I want to be able to intercept the filter and change the filter from an equals
to a contains

John

It is an integer that I will need to filter on. The child array will be an array of integers. For example accountIdList may contain the values (1,2,3,4). From the front end I would pass in a value of 1 so I need some way of checking if the value 1 is in the accountIdList.

Contains seemed the logical way for me but you have stated that this only works for strings so this won't work

Stefan

I can confirm that this can be achieved only with custom binding. Please have in mind that in this case all of the operations like paging, filtering, sorting and grouping have to be implemented manually.

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 Feedback Portal and vote to affect the priority of the items

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.