title: bootstrapTable is not supported
body: <p>I Have tables in my site that have to much columns and I found BootstrapTable so I have a function that uses the jquery resize event. when the window with is equal to or small then 887px it should change the tables to card view. but when I run the site I get an error telling me this</p>
  
  <p>0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'bootstrapTable'</p>
  
  <p>Can anyone please explain why i'm getting this error and how I can fix it. Here is my code. Thanks</p>
  
  <p>This code is in my master page
  This code is in the header tag</p>
  
  <pre><code>&lt;link href="Styles/1Life/jquery-ui.min.css" rel="stylesheet" /&gt;
  &lt;link href="Styles/1Life/bootstrap.min.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="../Styles/1Life/bootstrap-table.min.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link href="Styles/1Life/1Life_StyleSheet.css" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>This code is in the body tag </p>
  
  <pre><code>    &lt;asp:ToolkitScriptManager ID="ToolScriptManager1" runat="server" EnablePageMethods="true" AsyncPostBackTimeout="0"&gt;
          &lt;Scripts&gt;
              &lt;asp:ScriptReference Path="~/Scripts/JQuery/1Life/jquery-1.12.3.min.js" /&gt;
              &lt;%--&lt;asp:ScriptReference Name="jquery" Path="~/Scripts/jquery-2.2.3.min.js" /&gt;--%&gt;
              &lt;asp:ScriptReference Path="~/Scripts/JQuery/jquery-ui.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/JQuery/jquery-migrate-1.3.0.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/JQuery/animatedcollapse.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/js/CommonFunctions.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/js/bootstrap.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/js/bootstrap-table.min.js" /&gt;
              &lt;asp:ScriptReference Path="~/Scripts/js/InboundSales.js" /&gt;
          &lt;/Scripts&gt;
      &lt;/asp:ToolkitScriptManager&gt;
  </code></pre>
  
  <p>Here is the javascript</p>
  
  <pre><code>function changinggrvWorkbenchToCardView() {
  if ($(window).width() &lt;= 887) {
      $("#ContentPlaceHolder1_grvWorkbench").removeAttr("data-card-view");
      $("#ContentPlaceHolder1_grvWorkbench").attr("data-toggle", "table");
      $("#ContentPlaceHolder1_grvWorkbench").attr("data-card-view", "true");
      $("#ContentPlaceHolder1_grvWorkbench").bootstrapTable('resetView');
  }
  else if ($(window).width() &gt; 887) {
      $("#ContentPlaceHolder1_grvWorkbench").removeAttr("data-toggle");
      $("#ContentPlaceHolder1_grvWorkbench").removeAttr("data-card-view");
      $("#ContentPlaceHolder1_grvWorkbench").attr("data-card-view", "false");
      $("#ContentPlaceHolder1_grvWorkbench").bootstrapTable('resetView');
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Here is the table</p>
  
  <pre><code>&lt;asp:GridView ID="grvDiaryEntries" runat="server" AutoGenerateColumns="False" Width="95%" GridLines="None" AllowPaging="True" CssClass="GridStyle marginLeft3 table grvRefresh" OnRowCommand="grvDiaryEntries_RowCommand" DataKeyNames="DiaryKey" OnPageIndexChanging="grvDiaryEntries_PageIndexChanging" PageSize="15" ClientIDMode="Static" CellPadding="4" ForeColor="#333333" data-card view="false"&gt;
  &lt;AlternatingRowStyle BackColor="White" /&gt;
                          &lt;Columns&gt;
                              &lt;asp:TemplateField ShowHeader="true" HeaderText="Reference Number"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton ID="lnkLeadNumber" runat="server" CausesValidation="False" CommandName="Select"
                                          OnClientClick='&lt;%# "OpenDiaryEntry(\""+ Eval("DiaryKey")+"\",\""+ Eval("Operator")+"\"); return false;" %&gt;'
                                          Text='&lt;%# Eval("ReferenceNumber") %&gt;' ToolTip="View diary entry details"&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                                  &lt;ItemStyle Width="15%" /&gt;
                              &lt;/asp:TemplateField&gt;
                              &lt;asp:BoundField DataField="Operator" HeaderText="Operator" Visible="False" /&gt;
                              &lt;asp:TemplateField HeaderText="Text"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:Label ID="lblText" runat="server" Text='&lt;%# Eval("Text").ToString().Length &lt; 50 ? Eval("Text") : Eval("Text").ToString().Substring(0,49) + "..." %&gt;'&gt;&gt;&lt;/asp:Label&gt;
                                  &lt;/ItemTemplate&gt;
                                  &lt;ItemStyle Width="50%" /&gt;
                              &lt;/asp:TemplateField&gt;
                              &lt;asp:BoundField DataField="DiaryDate" HeaderText="Diary Date" /&gt;
                              &lt;asp:TemplateField HeaderText="Options"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton ID="lnkComplete" runat="server" CausesValidation="False" CommandName="Complete"
                                          Text='Complete' OnClientClick="return confirm('Are you sure you want to complete this Diary Entry?'); return false;"
                                          ToolTip="Mark this diary entry as complete" CommandArgument='&lt;%# Eval("DiaryKey").ToString() %&gt;'&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                              &lt;asp:TemplateField HeaderText="" Visible="False"&gt;
                                  &lt;ItemTemplate&gt;
                                      &lt;asp:LinkButton ID="lnkView" runat="server" CausesValidation="False" CommandName="Select"
                                          OnClientClick='&lt;%# "OpenView(\""+ Eval("DiaryKey")+"\",\""+ Eval("Operator")+"\"); return false;" %&gt;'
                                          Text="View" ToolTip="View"&gt;&lt;/asp:LinkButton&gt;
                                  &lt;/ItemTemplate&gt;
                              &lt;/asp:TemplateField&gt;
                          &lt;/Columns&gt;
                          &lt;EditRowStyle BackColor="#2461BF" /&gt;
                          &lt;EmptyDataRowStyle HorizontalAlign="Center" /&gt;
                          &lt;EmptyDataTemplate&gt;
                              &lt;span style="color: red;"&gt;THERE IS NO DATA AVAILABLE TO DISPLAY&lt;/span&gt;
                          &lt;/EmptyDataTemplate&gt;
                          &lt;FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                          &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt;
                          &lt;PagerStyle HorizontalAlign="Center" BackColor="#2461BF" ForeColor="White" /&gt;
                          &lt;RowStyle BackColor="#EFF3FB" /&gt;
                          &lt;SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt;
                          &lt;SortedAscendingCellStyle BackColor="#F5F7FB" /&gt;
                          &lt;SortedAscendingHeaderStyle BackColor="#6D95E1" /&gt;
                          &lt;SortedDescendingCellStyle BackColor="#E9EBEF" /&gt;
                          &lt;SortedDescendingHeaderStyle BackColor="#4870BE" /&gt;
                      &lt;/asp:GridView&gt;
  </code></pre>