Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82229

Uncaught TypeError : Cannot read property 'mData' of undefined

$
0
0
This is mvc 4 application with razor view. I made sure only single instance of jquery is loaded. BTW is jquery 1.9.0 compatible with dataTables 1.1 beta? This is my first time using dataTable.
       <table id="studenttable">
            <tr>
                <th>head1</th>
                <th>head2</th>
                <th>head3</th>
                <th>head4</th>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.data1</td>
                    <td>@item.data2</td>
                    <td>@item.data3</td>
                    <td>@item.data4</td>
                </tr>
            }
        </table>
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.0-beta.2/css/jquery.dataTables.css">
<script type="text/javascript" src="/Scripts/jquery-1.9.0.js"></script>
<script type="text/javascript" src="/Scripts/jquery.dataTables.js"></script>
    <script>
        $(document).ready(function () {
                $("#studenttable").dataTable();
            }
        )
 </script>


Viewing all articles
Browse latest Browse all 82229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>