Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used the article "CRUD tables in WebMatrix using jTable jQuery plugin" as a guide, but elimitated the child table.

I am linking/including
XML
<!-- Include one of jQuery. -->
        <script src="~/Scripts/jquery-1.10.2.min.js"></script>
        <script src="~/Scripts/jquery-ui-1.10.3.js"></script>
        <script src="~/Scripts/modernizr-2.6.2.js"></script>
        <script src="~/Scripts/jtable/jquery.jtable.js" type="text/javascript"></script>
<!-- Include one of jTable styles. -->
<link href="~/Content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
 <!-- Include jTable script file. -->
<link href="~/Scripts/jtable/themes/metro/lightgray/jtable.css" rel="stylesheet" type="text/css" />



My page does not load the data into the JTable until I hit a sort button on the column. I do not get any errors. Does anyone know what would prevent the initial load of the data when the page renders?
Posted
Comments
Have you checked the Developer Tool console window? Is there any error?
Member 10368517 1-Nov-13 19:46pm    
Thanks for the suggestion. I am using WebMatrix and I am not aware of the Developer Tool console window. WebMatrix and the website show no errors. I cannot debug in VS as these are all cshtml pages. it is like the $('#EventTableContainer').jtable('Load'); is not firing until there is an event action to the JTable itself.

I am also using SQL Server where the Demo used SQL Server CE.

The demo, "CRUD tables in WebMatrix using jTable jQuery plugin", works fine.
I have not worked with WebMatrix, so I don't have any idea.

Please search in Google, I am sure you will find the solutions. I will also search at my free time and let you know if I find anything useful.
Member 10368517 3-Nov-13 12:23pm    
I have googled this. This is the only site that had CRUD + Webmatirx. I ran the migrate on the demo to my local SQL server and it broke the site. I need to know what is the difference between executing on SQL Server and CE. If anyone has any tips to make execution results the same between them, I would appreciate it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900