title: jQuery jTable optgroup
body: <p>I'm trying to create optgroup dropdown but I can't find out what data should I send from server to get result what I want. </p>
  
  <pre><code>JobsSelected: {
      title: "Name",
      edit: true,
      create: true,
      list: false,
      inputClass: 'multiselect',
      options: function (data) {
          if (data.source == 'create') {
              data.clearCache();
              return '/Jobs/Options';
          }
      }
  },
  </code></pre>
  
  <p>This is jtable code where I call server and get gruped jobs from my DB and want to show them on form.</p>
  
  <pre><code>[HttpPost]
  public JsonResult Options()
  {
      var data = jobs.GroupBy(x =&gt; x.Department)
                      .Select(g =&gt; new {
                          DisplayText = g.Key,
                          Value = g.Select(i =&gt; new
                          {
                              DisplayText = i.Name,
                              Value = i.Sifra
                          }).ToList()
                      }).ToList();
  
      return data;
  }
  </code></pre>
  
  <p>This is grouped data from server. But it just shows list with values from g.Key and I need to set that as optgroup. I don't know is it possible this way? How can I achieve that?</p>