Change the Filter in Kendo.Grid to Use Text instead of Bound Value associated w/Column -


in kendo.grid have:

columns.bound(c => c.formrighttypeid).width("25").title("form right").htmlattributes(new { @class = "text-align: center;" })   .template(@<text>     @if (item.formrighttypeid != null)     {       @displayright((long)item.formrighttypeid)     }     </text>); 

note displaying text value associated w/the formrighttypeid numeric value. have made grid "filterable":

@(html.kendo().grid<epims.models.formrights>()  ...  ...  .scrollable() .groupable() .sortable() .filterable(filterable => filterable             .extra(false)             .operators(operators => operators             .forstring(str => str.clear()             .contains("contains") ))) .pageable(pageable => pageable .refresh(true) .pagesizes(true) .buttoncount(5)) .bindto(model)) 

my problem filter option shows "show items value that: equal to" not allow me enter text. rather (and expected), value must numeric column bound numeric value field.

is possible customize filter?

thanks

implemented stored procedure returns id , description field associated w/the numeric value. basically, @mmillican suggested (i.e. change view model).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -