I'm trying to get footable working with my asp.net gridview. I have followed every ASP.NET guide on the internet for footable and nothing seems to work.
Gridview ASP Markup
<asp:GridView ID="GridView1" runat="server" CssClass="footable" AutoGenerateColumns="false" OnRowCommand="GridView1_RowCommand" DataKeyNames="ClientID" DataSourceID="SqlDataSource1" Style="max-width: 1024px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<Columns>
<asp:CommandField ShowSelectButton="True" />
<asp:BoundField DataField="ClientID" HeaderText="Client ID" InsertVisible="False" ReadOnly="True" SortExpression="ClientID" />
<asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" />
<asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName" />
<asp:BoundField DataField="Suburb" HeaderText="Suburb" SortExpression="Suburb" />
<asp:BoundField DataField="MobileNumber" HeaderText="Mobile Number" SortExpression="MobileNumber" />
</Columns>
</asp:GridView>
Code Behind File
GridView1.HeaderRow.TableSection = TableRowSection.TableHeader;
GridView1.HeaderRow.Cells[0].Attributes["data-class"] = "expand";
GridView1.HeaderRow.Cells[2].Attributes["data-hide"] = "phone, tablet";
JS
<script type="text/javascript">
$(function () {
$('[id*=GridView1]').footable();
});
If anyone has any idea that would be amazing.