This question is locked. New answers and comments are not allowed.
Hi all.
I've updated recentry telerik MVC3 to Q2 version.
The problemn is, one of grid columns is a Enum, when i filter by this column an error occurs:
Exception: -The specified value is not an instance of type 'Edm.Int32' Parameter name: value.
I'm using Entity Framework 4.1, in the controller i'm returning an IQueryable.
My Enum is:
Controller:
Any Solution for this problem?
Thanks
I've updated recentry telerik MVC3 to Q2 version.
The problemn is, one of grid columns is a Enum, when i filter by this column an error occurs:
Exception: -The specified value is not an instance of type 'Edm.Int32' Parameter name: value.
I'm using Entity Framework 4.1, in the controller i'm returning an IQueryable.
My Enum is:
public enum OrderEnum<br> {<br> [DisplayAttribute(Name = "Sucesso")]<br> Success = 0,<br> [DisplayAttribute(Name = "Informações Básicas")]<br> BasicInformation = 1<br> }Controller:
[GridAction()]<br> public ActionResult OrderGrid()<br> {<br>IQueryable<OrderVO> query = OrderRepositoryView.Orders<br> .OrderBy(o => o.NrOrder)<br> .Select(o => new OrderVO<br> {<br> Id = o.Id,<br>..<br>..<br> ProcessStatus = (OrderEnum)o.ProcessStatus<br> }).AsQueryable<OrderVO>();<br>return View(new GridModel(query));<br>}<br>Any Solution for this problem?
Thanks