Hello.
I am using an ObjectDataSource with my Grid and have implemented custom paging. Everything seems to work correctly with paging and sorting, which is great.
My problem comes around when I try to add filtering. I am trying to pass my filter information along to my ObjectDataSource and have modeled it on the solution given in this forum post: http://www.telerik.com/community/forums/thread/b311D-bdabgh.aspx
That all seems to work fine, but I have two questions:
- how can I get the filter expression to not use the DataField of the column ([LastName lik e'%sko%') but instead use a something like a FilterExpression? I'm asking because the names of the properties on my objects are not the same as the database names and I'd rather set a property on the column with this information. Is there a way to do this, or do I have to somehow manipulate the FilterExpression string that is returned from the MasterTableView?
- how can I then prevent the built in filtering function from happening? My data coming back will be sorted and filter correctly, so I do not need the grid to do any of this for me.
If anyone has done something similar, or has some helpful advice, I would appreciate it.
I am using an ObjectDataSource with my Grid and have implemented custom paging. Everything seems to work correctly with paging and sorting, which is great.
My problem comes around when I try to add filtering. I am trying to pass my filter information along to my ObjectDataSource and have modeled it on the solution given in this forum post: http://www.telerik.com/community/forums/thread/b311D-bdabgh.aspx
That all seems to work fine, but I have two questions:
- how can I get the filter expression to not use the DataField of the column ([LastName lik e'%sko%') but instead use a something like a FilterExpression? I'm asking because the names of the properties on my objects are not the same as the database names and I'd rather set a property on the column with this information. Is there a way to do this, or do I have to somehow manipulate the FilterExpression string that is returned from the MasterTableView?
- how can I then prevent the built in filtering function from happening? My data coming back will be sorted and filter correctly, so I do not need the grid to do any of this for me.
If anyone has done something similar, or has some helpful advice, I would appreciate it.