This is a migrated thread and some comments may be shown as answers.

[Solved] Enum filtering in Grid

0 Answers 156 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ilker
Top achievements
Rank 1
ilker asked on 29 Nov 2011, 08:53 PM
Hi fellows,

I have read enum filtering issues in grid for all MVC, ASPX or Windows forums but there is still not a pure solution for the issue.

I have an  enum class, lets Say sth like: Invoice = 1, Waybill = 2
In grid, this enum is displayed as below where TransactionTypeDisplay is the translated description of enum to my localized language.

columns.BoundData(o => o.TransactionType)
.ClientTemplate("<#= TransactionTypeDisplay #>").Filterable(true);

By now, the translated descriptions of enums are listed; but in filter menu dropdownlist has the words "Invoice" and "Waybill", not localized language forms. Also when I try to apply filter by selecting a value from dropdown, I got an error like "expected type enum actual, type System.Double"

Any suggestions? Thanks in advance.
Tags
Grid
Asked by
ilker
Top achievements
Rank 1
Share this question
or