Is there a way I can mark JQuery Flexigrid columns as sortable if I don't define them in-line?
i.e. I know I can do this
$("#flex1").flexigrid(
{
colModel: [
{ display: 'Col1', name: 'Col1', sortable: true },
{ display: 'Col2', name: 'Col2', sortable: true }
});
But I construct the grid just like:
$("#flex1").flexigrid();
and then just use a repeater control to output the table that JQuery will style:
<table id="flex1" >
<tr>
<th>Col1 /th>
...
...
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<tr>
<td><%# Eval("Col1") %></td> ...