title: kendo clienttemplate with parameters
body: <p>I am trying to set up a Kendo MVC Grid using client templates for a set of columns.
  I have this and it is working:</p>
  
  <pre><code>columns.Bound(m =&gt; m.FC_Sun).ClientTemplate("# if(FC_Sun != Base_Sun) {#" + "&lt;span style='color:red;'&gt;#:FC_Sun # &lt;/span&gt;" + "# } else {#" + "#: FC_Sun #" + "# } #");
  </code></pre>
  
  <p>However I would like to move this to a client template instead as I need to add quite a few more items to the column and an inline template just seems a little 'clunky'.</p>
  
  <p>The question is, how can I do this with a single client template. I have an existing one which works for a particular column (the same one as above).</p>
  
  <pre><code>&lt;script id="columnTemplate" type="text/kendo-tmpl"&gt;
    #if(FC_Sun != Base_Sun){#
  &lt;span style='color:orange'&gt;#:FC_Sun #&lt;/span&gt;
    #}else{#
  &lt;span&gt;#: FC_Sun #&lt;/span&gt;
    #}#
  &lt;/script&gt;
  </code></pre>
  
  <p>As you can see this is very much tied to one column, doing it this way I would need to create 7 templates, one for each day of the week, which just seems overkill.
  So is there a way to pass extra parameters to the template which tell it which values to use in the if statement..?</p>