This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the ViewModel or Controller, create a new TotalWebGrid and return it to the view, just like with the normal WebGrid. | |
public TotalWebGrid Grid | |
{ | |
get | |
{ | |
return new TotalWebGrid( | |
source: stagingBillLines, | |
rowsPerPage: 10, | |
ajaxUpdateContainerId: "BillLines"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// Support for AJAX loaded modal window. | |
// Focuses on first input textbox after it loads the window. | |
$('[data-toggle="modal"]').click(function(e) { | |
e.preventDefault(); | |
var url = $(this).attr('href'); | |
if (url.indexOf('#') == 0) { | |
$(url).modal('open'); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A bi-directional infinite scrolling jQuery plugin | |
// | |
// Usage Example: | |
// $(window).infiniteScroll({ url: window.location.href }) | |
(function($) { | |
$.scroller = { | |
// default settings | |
settings: { | |
url: null, |
NewerOlder