title: Kendo Grid: How display List<string> in one cell?
body: <p>I tried to iterate through the list and display all elements into a cell in a column but I've having trouble getting it to work.</p>
  
  <p>Here is what I have so far.</p>
  
  <p>In Grid definition:</p>
  
  <pre><code>columns.Bound(x =&gt; x.locationList).Title("Locations Included").ClientTemplate("#= iterate(x.locationList) #");
  </code></pre>
  
  <p>where <code>x.locationList</code> is a <code>List&lt;string&gt;</code> in the object passed in.</p>
  
  <p>In <code>&lt;script&gt;</code>:</p>
  
  <pre><code>function iterate(object) {
          var html = "&lt;ul&gt;";
  
          for (var x = 0; x &lt; object.length; x++) {
              html += "&lt;li&gt;";
              html += object[x];
              html += "&lt;/li&gt;";
          }
  
          html += "&lt;/ul&gt;";
          return html;
  }
  </code></pre>
  
  <p>However, this causes all the records to disappear. What is the correct syntax to do this?</p>
  
  <p>The documentations are confusing and most of the examples don't apply to what I'm trying to to.</p>