title: How to use Javascript for loop to create buttons
body: <p>I defined a several buttons using C# in behind. How can I do this in Javascript in front?  </p>
  
  <pre><code>for (int r = 0; r &lt; data.Count; r++)
  {
      var buttonField = new ButtonField
      {
          ButtonType = ButtonType.Button,
          Text = "Button",
          CommandName = "Display",                
      };
      break;
  }
  </code></pre>