asp.net - How do I convert a boolean from true/false to yes/no on a Telerik ASP .NET MVC Grid -


i able change display value of non-editable column on non-editable telerik ajax grid in asp.net mvc. column in question boolean value sot display conversion yes=true , no-false.

i did little experimenting , found works. not sure if hold on editable column in case column not editable.

<% html.telerik().grid<someclass>()    .name("somegrid")    .columns(columns =>    {       columns.bound(o => o.reportingperiodshortdescription);       columns.bound(o => o.closed)           .clienttemplate("<#=closed ? 'yes' : 'no' #>")           .title("closed")           .width("4em");    })    .footer(false)    .render(); %> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -