Hello guys.
I'm trying to use a filter with my grid like this example:
http://demos.telerik.com/aspnet-ajax/filter/examples/integration/defaultcs.aspx
but, if I use this sample code:
The filter doesn't affect the grid. However if I use this sample code:
The filter works fine.
Note that is the same stored procedure for both cases.
I'm forgetting something? For EF is a different way?
Another question is:
How can I remove a field from filter, like: The customer's ID. I don't want this field in filter. How can I remove it?
Regards.
I'm trying to use a filter with my grid like this example:
http://demos.telerik.com/aspnet-ajax/filter/examples/integration/defaultcs.aspx
but, if I use this sample code:
ObjContext entities = new ObjContext(); |
ObjectResult<EntitiesResult> myEntities = entities.usp_get_entities(); |
return myEntities.AsQueryable(); |
The filter doesn't affect the grid. However if I use this sample code:
DataTable dtEntities = DataBase.ExecuteReaderDt(CommandType.StoredProcedure, "USP_GET_ENTITIES"); |
return dtEntities; |
The filter works fine.
Note that is the same stored procedure for both cases.
I'm forgetting something? For EF is a different way?
Another question is:
How can I remove a field from filter, like: The customer's ID. I don't want this field in filter. How can I remove it?
Regards.