title: Kendo UI Grid Row Template
body: <p>I had a problem on how to apply row Template data binding into it. I not sure what is the syntax to do so. I am using server binding mode. Below is my code</p>
  
  <pre><code>@(Html.Kendo().Grid((IEnumerable&lt;IcmsViewModel.LookupView&gt;)ViewData["LookupView"]) // Bind the grid to the Model property of the view
    .Name("Grid")
    .CellAction(cell =&gt;
        {
  
          if (cell.DataItem.Active == false)
          {
              cell.HtmlAttributes["style"] = "background-color: red";
  
          }
  
        }
    )
    .Columns(columns =&gt;
    {
        columns.Bound(p =&gt; p.LookupValue).ClientTemplate(" ").Title("Short Name").Width(300);
        columns.Bound(p =&gt; p.Description).Width(300);
        columns.Bound(p =&gt; p.Active).Width(300);
        columns.Command(command =&gt; { command.Edit(); command.Destroy(); });
  
    })
  **.RowTemplate(rows =&gt;
                  "&lt;tr&gt;&lt;td&gt;Testing&lt;/td&gt;" +
          "&lt;td colspan=\"2\"&gt;&lt;input type=\"button\" name=\"ClickMe\" value=\"ClickMe\" onclick=\"javascript:window.open(('/Test/ViewTest'), 'ViewTest', 'height=' + (window.screen.height - 100) + ',width=200,left=' + (window.screen.width - 250) + ',top=10,status=no,toolbar=no,resizable=yes,scrollbars=yes');\"/&gt;&lt;/td&gt;" +
          "&lt;td&gt;Name&lt;/td&gt;&lt;/tr&gt;"
  )**
    .ToolBar(commands =&gt; commands.Create())
    .Groupable()
    .Pageable()
    .Sortable()
      //.Filterable()
    .Scrollable(x =&gt; x.Height(600))
    .Editable(editable =&gt; editable.Mode(GridEditMode.InLine))
        .DataSource(dataSource =&gt; dataSource
              .Server()
               .Model(model =&gt; { model.Id(p =&gt; p.Id); model.Field(p =&gt; p.Id).Editable(false); })
              .Create(create =&gt; create.Action("CreateLookup", "Icms"))
              .Read(read =&gt; read.Action("Lookup", "Icms"))
              .Update(update =&gt; update.Action("UpdateLookup", "Icms"))
              .Destroy(destroy =&gt; destroy.Action("Destroy", "Sample"))
          )
  </code></pre>
  
  <p>)</p>
  
  <p>Currently I hard code the value in the row template, how can I bind it with the data in database, if i want to apply the row template.</p>
  
  <p>Example
  <strong>.RowTemplate(rows =>
                      "p.LookupValue" +
              "" +
              "p.Description"
      )</strong></p>
  
  <p>Please help me on this as I am new to kendo UI. Thanks a lot.</p>