This question is locked. New answers and comments are not allowed.
I need to include the identity column in the grid so I can RESTfully edit/delete/etc unfotunately when I include the column with visible(false) the column isn't rendered.
colums.Add(o => o.er_id).Visible(false);
colums.Add(o => o.er_company).Title("Company").Filterable(false);
colums.Add(o => o.er_code).Title("Code").Filterable(false);
colums.Add(o => o.er_description).Title("Description").Filterable(true);
colums.Add(o => o.er_otoverride).Filterable(true);
renders
<tr class=" ">
<td style="">REG</td>
<td>REG</td>
<td>Descr</td>
<td>1</td>
</tr>
Changing visible(true) does send the column. I will work around this for now by adding some javascript to hide the field. Doesn't make sense to me to have visible if it means "don't send".
colums.Add(o => o.er_id).Visible(false);
colums.Add(o => o.er_company).Title("Company").Filterable(false);
colums.Add(o => o.er_code).Title("Code").Filterable(false);
colums.Add(o => o.er_description).Title("Description").Filterable(true);
colums.Add(o => o.er_otoverride).Filterable(true);
renders
<tr class=" ">
<td style="">REG</td>
<td>REG</td>
<td>Descr</td>
<td>1</td>
</tr>
Changing visible(true) does send the column. I will work around this for now by adding some javascript to hide the field. Doesn't make sense to me to have visible if it means "don't send".