-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added grid defaults object. Turned on preloading by default.
- Loading branch information
Joe Harrison
committed
Feb 11, 2015
1 parent
07d46c4
commit 49838cf
Showing
10 changed files
with
56 additions
and
90 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace MVCGrid.Models | ||
{ | ||
public class GridDefaults | ||
{ | ||
public GridDefaults() | ||
{ | ||
PreloadData = true; | ||
Paging = false; | ||
ItemsPerPage = 20; | ||
Sorting = false; | ||
DefaultSortColumn = null; | ||
NoResultsMessage = "No results."; | ||
ClientSideLoadingMessageFunctionName = null; | ||
ClientSideLoadingCompleteFunctionName = null; | ||
Filtering = false; | ||
DefaultRenderingEngine = typeof(MVCGrid.Rendering.BootstrapRenderingEngine); | ||
} | ||
|
||
public bool PreloadData { get; set; } | ||
public bool Paging { get; set; } | ||
public int ItemsPerPage { get; set; } | ||
public bool Sorting { get; set; } | ||
public string DefaultSortColumn { get; set; } | ||
public string NoResultsMessage { get; set; } | ||
public string ClientSideLoadingMessageFunctionName { get; set; } | ||
public string ClientSideLoadingCompleteFunctionName { get; set; } | ||
public bool Filtering { get; set; } | ||
public Type DefaultRenderingEngine { get; set; } | ||
} | ||
} |
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
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
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
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
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
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