Sam123

Sam123

  • NA
  • 45
  • 2.2k

Datatable jquery plugin

Apr 7 2020 5:15 AM
Question - while debugging i got an error "JavaScript runtime error: Unable to get property 'mData' of undefined or null reference"
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Grid view example
</title>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.3.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.7/css/jquery.dataTables.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.7/js/jquery.dataTables.js"></script>
<script>
$(document).ready( function () {
$('#GridView1').DataTable();
} );
</script>
</head>
<body>
<form method="post" action="./popup.aspx" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="0j6D00mjzUW9LyC0O1mVg/zMuTXYRfE2OUxRgSLyDyPsblRB8l33mJ+XUpZTS2OfAAvJ3SwICynUiB8iLNv9/+b/MEe/nlq38vTMSzBJbto2gUGzxR6xWXX1RoWyjTfGx8d7nVm3YUHJ3uw+a6B3WyZIIfOGkoEwKOunDiPcGiKxfPhrwFrJL+UlWyVm+N5bEI7Q6lqJrnNg79JSlkhlaEBNAhIFmiVdvMiiLToP4+2vNwfu7qPtXIupdx+Asd8Nqd5s9VZmhtxvY/KFQy4wlA1i1ss13N2DEHn8HpP3eN381YPh+PF95+VZ8+uSekr6aMTqCTq7BJpS6GiioGEknRGrPZfKooOc3LR0J6LIC0Zh26kS4d+wbZZRAisKSTXIedJSIBzogCfpMeUwBf+5h8HlNYuoIugmaO8KAirzGe6DxA+SkXNH0mjyv+rNJyAJBul2XU05qMgHlQParQ7Jh/SJvbKmCkC/f6XZEESUqXtLWp0tSlnkkdNJ7HAZBcGMBNlX6JsUHjdGjtjr7PJ5vClcW676W+mSS8VCZi8KYTFr1+Oo9a/Ulo8B3iRfg9lgwL2jpIZD1fYVVsX7N+ltbLwJxmOsCWGZOY1l9Y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WNKy9aOEzBwFWMzD4MCf65Q044IFsbmV1XbTah9SRt66whcFWBEC2lJBZuDrQpIMIm24g3Rrph0mNS6SED0DWeoe2wr+BAyLqqaJ9T5KCV/GjXdwUZoo02LXGfIRiLieXP9EH54t67ed2frCq7h4AjlKdkHyeVroM0o60q6iiKYFFpBHjiMf5CUJDmLyYs9VGlzLkUEj+y/CRwAZpggaSEGF+lFIy0szIIRVBaW9lFdZOazhClkm85opWe01nmfP8USYj72WxDSBbxtwZ9evVSTnV4kyEJgeBCek5wAejkS78DnaflzefulXmvohBBFPEnJGNhISVGUt8JagNDe3m+sIEfxaiW/8z3WL0hrVikXiEVslTLbyeg5DSRvVEM42mmWY/UkM8+dvfwDJatsHjCPw113kOXEU8u27+6E9mP80nRbT2hRusLSWWVWCRt58xTLQtNMiSh/DiUyRlQmV+cKBsrDbqacILax+sq/7Oi5iHK9wJ3QcnYQhgpBx89TNZGJM90HB97BwUSBrADlTk7yKLEzR93q62YVYMh7KrMzT5Gig9e7MHAJG+3YnKLZyAZidnntquXuhMtj1+/LHcf5C4JdYOl6aOmdnk1mtx4mDQzRB4MjrLrix0aD/pOpste+Wx/WzJNxZ8eP3mAjUutxOoKdNOSZTt5WgAepOgJWGmapASQ+OUdVLAIJnEkxAt5sEgQp5GwOgq3EbyZV9fdo5zFG4jP0sCnDSctRP/EH0WUkmHg0MYd/UmDGNh8cS5GOWinyjnwYFclcDBdVFsVR/OhC7nvqVbsOkvqAulzvLuxnU9jH82So26B+NE91ubA9Ppo11qLCdBk5ZnMdvUiNTlcqaXJnIDA5Ynijbj/gZKIF0e3LTmzcan7oYcfdDk2m5ko619PPWV97D+XEz1Jrmf+AwDcT7el3ld5A78gfn0i1qxe3D4jOwV50VlguZgAotLxHu4VmRRNPdgZZ6ljxWsCdL2FPKf+d4NI5xekNaS1DdABks/qBY+tnQ==" />
</div>
<div class="container">
<div>
<table cellspacing="0" rules="all" border="1" id="GridView1" style="border-collapse:collapse;">
<tr>
<th scope="col">ContactID</th><th scope="col">SupportRepresentative</th><th scope="col">Activity</th><th scope="col">Mission</th><th scope="col">Country</th><th scope="col">City</th><th scope="col">IPaddress</th><th scope="col">MACaddress</th><th scope="col">Hostname</th><th scope="col">Status</th><th scope="col">StartDate</th><th scope="col">ModifiedDate</th><th scope="col">EndDate</th><th scope="col">Remarks</th>
</tr><tr>
<td>1</td><td>Akash Pawar</td><td>Rollout</td><td>Poland</td><td>India</td><td>Thane</td><td>89hih</td><td>jkhk</td><td>jlk</td><td>Start</td><td>03/02/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>hgjh</td>
</tr><tr>
<td>2</td><td>Junaid Kazi</td><td>Change Request</td><td>Poland</td><td>India</td><td>Thane</td><td>asdfasdf</td><td>asdfasdf</td><td>asdfasdf</td><td>Completed</td><td>11/03/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>asdfasdfasjhgjkkldfg</td>
</tr><tr>
<td>3</td><td>Chhaya Pingale</td><td>Developement - Client</td><td>Belgium</td><td>China</td><td>malad</td><td>kj;ksjlfgsfdg</td><td>slgsdg</td><td>klsdfgsdfg</td><td>Inprocess</td><td>03/10/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>kas;jdglsdg</td>
</tr><tr>
<td>4</td><td>Akash Pawar</td><td>Rollout</td><td>Poland</td><td>India</td><td>Thane</td><td>asdfasdf</td><td>asdfasdf</td><td>asdfasdf</td><td>Start</td><td>03/10/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>dasfasdf</td>
</tr><tr>
<td>5</td><td>Akash Pawar</td><td>Rollout</td><td>Poland</td><td>India</td><td>Thane</td><td>asdfasdf</td><td>asdf</td><td>asdf</td><td>Start</td><td>03/18/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>afdsad</td>
</tr><tr>
<td>6</td><td>Akash Pawar</td><td>Rollout</td><td>Poland</td><td>India</td><td>Thane</td><td>10.96.78.15</td><td>98-09-98-78-98</td><td>YU87</td><td>Start</td><td>03/09/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>This is activity that needs to be completed</td>
</tr><tr>
<td>7</td><td>Akash Pawar</td><td>Rollout</td><td>Poland</td><td>India</td><td>Thane</td><td>10.97.89.98</td><td>jahkf</td><td>sjdafalsdf</td><td>Start</td><td>03/17/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>jklasdfjalskdjfhalksjhdfasdf</td>
</tr><tr>
<td>8</td><td>Akash Pawar</td><td>Rollout</td><td>Poland</td><td>India</td><td>Thane</td><td>kdl</td><td>dd</td><td>dmd</td><td>Start</td><td>04/08/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>djfkifif</td>
</tr><tr>
<td>9</td><td>Akash Pawar</td><td>Rollout</td><td>Poland</td><td>India</td><td>Thane</td><td>asd</td><td>asdf</td><td>asdfasdfa</td><td>Completed</td><td>04/21/2020 12:00:00 AM</td><td>&nbsp;</td><td>&nbsp;</td><td>asdfasdf</td>
</tr>
</table>
</div>
</div>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="D3748451" />
<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
</div></form>
<!-- Visual Studio Browser Link -->
<script type="application/json" id="__browserLink_initializationData">
{"appName":"InternetExplorer","requestId":"5f878b9b76e748b493e6d62eec6072f6"}
</script>
<script type="text/javascript" src="http://localhost:40755/4982d9c91241455bb31b5730c30718a2/browserLink" async="async"></script>
<!-- End Browser Link -->
</body>
</html>

Answers (2)